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.
I was trying to use a numeric rule to validate a form field, but kept getting the following unhelpful message in the browser with invalid entries:
Use only numbers at %field.
It seems that only some types of validation substitute %field with the name of the field, so the attached patch changes behaviour so %field is always substituted with the name of the field, which corrects the above message to;
Use only numbers at Survey ID.
Comment | File | Size | Author |
---|---|---|---|
clientside_validation_fapi-message.patch | 1.78 KB | Kevin Rogers | |
Comments
Comment #1
attiks CreditAttribution: attiks commentedComment #2
Jelle_SFixed in latest dev. Thanks for the patch!