Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#4 | webform_hidden_mandatory.patch | 655 bytes | quicksketch |
Comments
Comment #1
jack.r.abbit CreditAttribution: jack.r.abbit commentedIn addition, editing the hidden component again will set the "mandatory" flag back to 1.
Comment #2
Dave ReidCongrats, this is drupal.org's 400,000th node! :)
Now you can resume your regularly scheduled business...
Comment #3
quicksketchOh! 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. ;-)
Comment #4
quicksketchI'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.
Comment #5
quicksketchThis won't see a fix in the 2.x version, considering it has no effect on functionality.