Sorry for my bad english.
After filled this #1110506: make regular expression validation more flexible bug report, I have wrote personal module for my necessity.
I would propose a patch for webform validation with 2 new validators:
"Required" permits to set textfield, textarea, email and hidden fields as required, and permits to set personal error message if fields isn't filled (%name could be used for label substitution).
"Fieldset Childs Required" permits to set all/some childs of a fieldset required, and it show only 1 error message if not validate (cumulative for fieldset instead 1 for each childs). Validation is made by "required" validator, so it validate only textfield, textarea, email and hidden childs
Comment | File | Size | Author |
---|---|---|---|
required_and_fieldset_childs_required.patch | 7.59 KB | robertom | |
Comments
Comment #1
robertom CreditAttribution: robertom commentedComment #2
Liam MorlandPlease create separate issues for each of these.
Comment #3
Liam MorlandRequired validation is handled by core Webform. Even in the case of a fieldset, each element should be individually marked as required. That is the custom on the web.
Comment #4
Liam MorlandRequired validation is handled by core Webform. Even in the case of fieldsets, each element should be marked as required. That is the custom on the web.