The option "required" for a webform mulitple file component does not work.
Probably because of the renaming of the attribute $component['mandatory'] to $component['required'] in webform 7.4. (https://drupal.org/node/1609324#webform-required)

If I fix the problem above, there seem to be another problem in combination with conditionals in webforms. If I set a webform multiple file as a required filed, the field is always required, even if the field is not visible because of the conditions of the webform.

Comments

chalk’s picture

Component: User interface » Code
chalk’s picture

@RoKi you are right! Thanks. Will be fixed in few minutes

  • Commit 294a786 on 7.x-1.x by Chalk:
    Rename component key mandatory to required according to Webform 4.x  [#...
chalk’s picture

Status: Active » Closed (fixed)
roki’s picture

The option "required" now works for me.
(But multiple file field still does not use settings from conditionals. A required file field is still required even if it is not shown on the form.)