When adding a "hidden" component on the Form Component page, the "mandatory" option is unchecked by default. Once you have clicked "add" and you get into the page with additional options, there is no "mandatory" checkbox. However, once you have saved the component, the "mandatory" checkbox is now checked. Unchecking it and saving the form corrects this. Minor issue since empty hidden fields don't seem to trigger the "required" error. Just an inconsistency in the UI

CommentFileSizeAuthor
#4 webform_hidden_mandatory.patch655 bytesquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jack.r.abbit’s picture

In addition, editing the hidden component again will set the "mandatory" flag back to 1.

Dave Reid’s picture

Congrats, this is drupal.org's 400,000th node! :)

Now you can resume your regularly scheduled business...

quicksketch’s picture

Oh! And it's in one of my 350 currently open Webform issues. *small tear*. Oh, I have 350 open issues, maybe I'm just crying. ;-)

quicksketch’s picture

FileSize
655 bytes

I've fixed this in the 3.x version with the attached patch. Leaving open for 2.x since this patch doesn't work at all on 2.x.

quicksketch’s picture

Version: 6.x-2.6 » 6.x-2.9
Status: Active » Closed (won't fix)

This won't see a fix in the 2.x version, considering it has no effect on functionality.