I would like to have an option to set the default value for the select list to the first value in the list, so that the user doesn't see "- Select -". This will also prevent a user from submitting a required select list without making a selection.

I put this in the View Reference issue queue rather than the Webform queue because it's only relevant if you have a variable number of select items.

Comments

DrewMathers’s picture

Category: feature » support
Status: Active » Fixed

The auto-assigned key values for the select element are integers, beginning with 2. Therefore, setting the field default value to 2 will always default to the first value in the list.

DrewMathers’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta2

Status: Fixed » Closed (fixed)

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