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.
Hi, can you tell me please, why my standard drupal form works with CS module, for example this: http://www.auto-inzeraty.eu/user/register but my custom form NOT? http://www.auto-inzeraty.eu/auto-inzerat-zdarma
Where is any problem?
Comment | File | Size | Author |
---|---|---|---|
#4 | Selection_027.png | 19.96 KB | Jelle_S |
#4 | Selection_028.png | 19.06 KB | Jelle_S |
#4 | Selection_029.png | 12.77 KB | Jelle_S |
#4 | Selection_030.png | 4.62 KB | Jelle_S |
#4 | Selection_031.png | 36.46 KB | Jelle_S |
Comments
Comment #1
Prague man CreditAttribution: Prague man commentedOf course, I have this custom content type allowed (enabled) here: http://www.auto-inzeraty.eu/admin/config/validation/clientside_validation/content-types
Comment #2
Prague man CreditAttribution: Prague man commentedok problem is with field group, if I set the group as collapsible or collapsed, CS module doesn't work. If I set group as open, that is worked.
Comment #3
attiks CreditAttribution: attiks commentedComment #4
Jelle_SActually this works as designed, and can be changed by a setting.
Clientside Validation does not validate hidden fields, as we do not know if the user will ever get to see the hidden field (this is to support modules like Webform Conditional)
You can either change this for every form, or only for your custom form:
For every form:
For only one form:
Either follow the same steps as described above and fill in your form id in the textarea:
Or follow these steps:
And you're all set. This way the hidden fields will be validated as well.
PS:
Comment #5
Prague man CreditAttribution: Prague man commentedThank you.