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.
Problem/Motivation
Using clienside_validation 7.x-1.41 (latest dev) and field_validation 7.x-2.4 (latest) you can't override the required field message. Even defining it on the validate tab of the field. It will always show "[field_name] is required."
Proposed resolution
Fetch the message and override the default JS message.
Remaining tasks
Do we need to test other implementations before pushing this change?
If so, we need to:
- Test with field_validation 7.x-1.dev
- Test with webforms
- Test with fapi
- Make other tests?
Comment | File | Size | Author |
---|---|---|---|
#3 | clientside_validation-override_default_required_message-2414981-3.patch | 1.28 KB | nbouhid |
Comments
Comment #1
nbouhid CreditAttribution: nbouhid commentedUploading patch
Comment #2
nbouhid CreditAttribution: nbouhid commentedComment #3
nbouhid CreditAttribution: nbouhid commentedThere was a missing "break;" statement on the first patch, and the issue/patch name had a typo.
Comment #4
nbouhid CreditAttribution: nbouhid commentedComment #5
apaderno