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'

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Title: Defaults for Radios and Select lists » Add ability to deselect default value for selects/radio buttons
Project: Form Builder » Options Element
Version: 6.x-0.9 » 7.x-1.5
Component: Webform Itegration » User interface
Priority: Minor » Normal

or adding an option on those fields to 'clear defaults'

I 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.

quicksketch’s picture

Version: 7.x-1.5 » 7.x-1.9
Issue summary: View changes
Status: Active » Needs review
FileSize
2.14 KB

Here's a patch that adds a link below the set of defaults to remove any checked options.

quicksketch’s picture

Status: Needs review » Fixed

Committed to both D6 and D7 branches.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.