Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: zerolab at Torchbox for The Chartered Society of Physiotherapy 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 CreditAttribution: sergiogsanchez as a volunteer commentedBasis on zerolab patch we should need update the name tokens, this patch will work with current dev version.
Comment #6
OlgaRabodzei CreditAttribution: OlgaRabodzei at Adyax commentedWas fixed in the last release(2017-Apr-07). Can someone check it, please?