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

todinov’s picture

Clientside validation used to work well with entityforms, but that doesn't seem to be the case anymore. Can anyone shed some light on this?

nbouhid’s picture

It 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?

Jelle_S’s picture

Status: Active » Closed (works as designed)

Closing this. Feel free to reopen if you still have a problem

museumboy’s picture

I've followed the instructions in #2 but I'm not sure how to get this to work on an entityform. Are there anymore instructions?

museumboy’s picture

The 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.

lunk rat’s picture

I 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.

lunk rat’s picture

Title: Entityform support? » Field validation not applied to fields on forms from the entityform module.
Version: 7.x-2.x-dev » 7.x-1.x-dev
Component: Form Validation » Field Validation
Issue summary: View changes
Status: Closed (works as designed) » Active