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.
Field validation rules are not applied to entityform fields.
Original Issue Summary
It seems to me that Clientside Validation doesn't support entityforms. Is it possible to integrate them?
Comments
Comment #1
todinov CreditAttribution: todinov commentedClientside validation used to work well with entityforms, but that doesn't seem to be the case anymore. Can anyone shed some light on this?
Comment #2
nbouhid CreditAttribution: nbouhid commentedIt supports entityforms. You will need something that manages the rules, like field_validation module. Then you just enable clientside_validation, and clientside_validation_field_validation.
Have you done that?
Comment #3
Jelle_SClosing this. Feel free to reopen if you still have a problem
Comment #4
museumboy CreditAttribution: museumboy commentedI've followed the instructions in #2 but I'm not sure how to get this to work on an entityform. Are there anymore instructions?
Comment #5
museumboy CreditAttribution: museumboy commentedThe 1.x version appears to work with entityform but I cannot get 2.x to work. I think this is also because it cannot find the jQuery library.
Comment #6
lunk rat CreditAttribution: lunk rat commentedI can confirm that Clientside Validation 7.x-1.46 does not validate fields on Entityforms using enttyform-7.x-2.0-rc4
Steps to reproduce:
1. Install clientside_validation 7.x-1.46 and enttyform-7.x-2.0-rc4
2. Enable Clientside Validation, Clientside Validation Field Validation, Clientside Validation Form
3. Create an entityform type with some fields. Submit form with invalid values. Observe that clientside validation did not occur.
I know that clientside validation is working on the site because validation of fields on other forms (e.g., Add content forms) occurs client-side.
Comment #7
lunk rat CreditAttribution: lunk rat commented