To reproduce this bug :
- create a webform containing
- a select component with two options
- at least 1 mandatory file field which gets hidden depending on the select component's status (conditional rules)
- view the form, select the option which hides the file field and submit without having selected a file in the file field.
Validation throws an error, saying that the file field is mandatory, while it shouldn't.
I'm using D7.9, Webform3.13 and Webform Conditional 7.x (2011-Nov-03)

The same bug has been reported for 6.x branch here.

Comments

Domug’s picture

File fields are NOT allowed to be required. That might be the problem! Webform module uses a workaround to this D7 core limitation.

Domug’s picture

Actually the conditional rules on mandatory file fields work without the Webform Conditional module, with the select component on one page and the (mandatory) file field on the other.
So this really is a Webform Conditional bug.

quicksketch’s picture

Status: Active » Closed (duplicate)