Hi

I have discovered this issue:

I have a filefield and some required fields, some of them conditional.

If I submit the form empty, I get the usual error message saying some fields are required.

The conditionals still work.

I upload a file, but forget to fill out some of the required fields, I get the usual error, same as above.

But now the conditional fields don't work.

Has anybody else encountered this issue?

CommentFileSizeAuthor
#4 2659644-2.patch851 bytesgeoffray
#3 2659644.patch1.25 KBgeoffray
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

combert created an issue. See original summary.

combert’s picture

It sounds somewhat similar to this reported issue:

https://www.drupal.org/node/2246321

geoffray’s picture

FileSize
1.25 KB

Had the problem too. Here is my patch :

geoffray’s picture

FileSize
851 bytes

And here is the js patch.

It seems the problem occured because of the webform nid becoming nid--2 after submitting the webform with an uploaded file.

geoffray’s picture

Status: Active » Needs review