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?
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nbouhid’s picture

nbouhid’s picture

Status: Needs work » Needs review
nbouhid’s picture

Title: Clienside validation + field validation does not support overriding default required message » Clientside validation + field validation does not support overriding default required message
FileSize
1.28 KB

There was a missing "break;" statement on the first patch, and the issue/patch name had a typo.

nbouhid’s picture

apaderno’s picture

Issue tags: -required message field validation override