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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

robertom’s picture

Component: Code » Validation rules
Liam Morland’s picture

Version: 7.x-1.0 » 7.x-1.1
Status: Needs review » Needs work

Please create separate issues for each of these.

Liam Morland’s picture

Status: Needs work » Closed (won't fix)

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

Liam Morland’s picture

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