When conditionally marking a field as required, the validation message throws a "Unknown index !name" warning. The message itself is set to output the machine name, rather than the label.
Also changed the error to be set on the field so it is marked as having an error. This way themes can provide adequate styling.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix_required_field_labels.patch | 1.28 KB | sergiogsanchez |
Comments
Comment #2
zerolab commentedThe attached patch fixes the PHP warning and tweaks the message to try to get the field label, falling back to its machine name.
Comment #3
sergiogsanchez commentedBasis on zerolab patch we should need update the name tokens, this patch will work with current dev version.
Comment #6
OlgaRabodzei commentedWas fixed in the last release(2017-Apr-07). Can someone check it, please?