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.
The Field Validation module allows you to enter tokens such as [value] so you can include the value of the field in the error message. However when you use Clientside Validation with Field Validation it just displays the token to the user instead of parsing the token and retrieving the value.
Comments
Comment #1
Jelle_SFixed in latest dev.
The only token we can support is the [value] token. We can not get the values for tokens like entity-type and bundle from javascript.
Comment #2
SeanBannister CreditAttribution: SeanBannister commentedThanks for the fix. Can we get [field-name] I was even thinking it could just be retrieved from the DOM via if need be.
Comment #3
Jelle_SAdded to latest dev version.