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?

Members fund testing for the Drupal project. Drupal Association Learn more


Prague man’s picture

Of course, I have this custom content type allowed (enabled) here: http://www.auto-inzeraty.eu/admin/config/validation/clientside_validation/content-types

Prague man’s picture

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

attiks’s picture

Assigned: Unassigned » Jelle_S
Jelle_S’s picture

Component: Miscellaneous » Documentation
Category: task » support
Status: Active » Fixed
4.66 KB
17.49 KB
36.46 KB
4.62 KB
12.77 KB
19.06 KB
19.96 KB

Actually 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:

  1. Go to admin/config/validation/clientside_validation.
  2. Click on 'Default Settings'
  3. Scroll down to the 'Hidden fields and tabs' fieldset
  4. Check 'validate hidden fields':

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:

  1. Go to admin/config/validation/clientside_validation.
  2. Click on 'Custom Froms'
  3. Add the right form id:
  4. Click edit next to your form id:
  5. Check 'Override default options for Hidden fields and vertical tabs' and you will see a new fieldset with the settings:
  6. Check 'Validate hidden fields' and save:
  7. Click enable next to your form id and confirm:

And you're all set. This way the hidden fields will be validated as well.


  1. You can do the exact same thing for content types as well:
  2. Go to admin/config/validation/clientside_validation/content-types
  3. Click 'create' next to your content type
  4. Follow the same steps as above starting from 5.
Prague man’s picture

Thank you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.