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.
One think I have noticed is you specify a default for Radios, Select Lists, and checkboxes. Not a major thing for checkboxes but for radios and select lists, there is no 'easy' way for a webform creator to deselect defaults thus forcing end users to check one.
I would recommend either eliminating
'#default_value' => 'one',
from each type or adding an option on those fields to 'clear defaults'
Comment | File | Size | Author |
---|---|---|---|
#2 | options_element_remove_default-1422930.patch | 2.14 KB | quicksketch |
Comments
Comment #1
quicksketchI think that's the right approach. I'm moving this to the Options Element module, since that's where the feature needs to be added. Right now you can only set an empty default value by toggling the "Manual entry" link, then clearing out the textfield for default value. Adding a link or empty radio button would be a good idea.
Comment #2
quicksketchHere's a patch that adds a link below the set of defaults to remove any checked options.
Comment #3
quicksketchCommitted to both D6 and D7 branches.