Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I am using the clientside validation module for validating a form in my website that has a interval field. All the form fields are validated properly, but the interval field is shown as field_duration[und][0][value] is required. Attached is the screenshot for the same. I would appreciate somebody to suggest me how to fix the issue or if it is already fixed, would like to have the patch...
Comment | File | Size | Author |
---|---|---|---|
Interval Field Client Side Validation Error.png | 6.3 KB | avinash1989 |
Comments
Comment #1
attiks CreditAttribution: attiks commentedAFAIK it isn't working, if you want to implement this you can write a new submodule.
You should define a new fapi_validation rule, using hook_fapi_validation_rules, normally it will get picked up by the clientside validation fapi sub module.
Comment #2
avinash1989 CreditAttribution: avinash1989 commentedCan you refer me some resources on how to implement fapi_validation illustrating some of it's API functions?
Comment #3
attiks CreditAttribution: attiks commentedMost of it can be found on http://drupal.org/project/fapi_validation
Or you could use fapi_validation_rule_regexp to do the validation, and use a hook_alter to add it to the form element (or patch interval to add it)