ID #10 (Previous | Next)

GET request to: form-test/select

Ending URL: http://www.candidity.co.uk/drupal/tb_sirate/form-test/select

Skip to main content

# Select

#default_value one
#default_value one, #required *
#default_value one, not #required
#default_value one, #required, #empty_value 0 *
#default_value = #empty_value, #required *
No #default_value, #required *
No #default_value, not #required
Should result in "one", because it is not required and there is no #empty_value requested, so default browser behavior of preselecting first option is in effect.
No #default_value, not #required, #empty_value empty string
Should result in an empty string (due to #empty_value), because it is optional.
No #default_value, #required, #empty_option *
No #default_value, not #required, #empty_option
Should result in an empty string (default of #empty_value), because it is optional.
No #default_value, #required, #empty_value 0 *
Should never result in 0.
No #default_value, #required, #empty_value one *
A mistakenly assigned #empty_value contained in #options should not be valid.
No #default_value, not #required, #empty_value 0
Should result in 0, because it is optional.
#multiple, #default_value two
#multiple, no #default_value
#multiple, #required, no #default_value *