fm:Form_Option
This component represents an html <option /> field to be used with the select component. Use this component instead of the standard html one to leverage the layout and validation features of the fm:Form component.
As an added bonus the fm:Select box has a value attribute, which will be used to automatically set the correct selected="selected" attribute for the option component.
Example
<fm:Form_Select name="agerange" value="31-40"> <fm:Form_Option value="11-20" label="11 - 20 years old"> <fm:Form_Option value="21-30" label="21 - 30 years old"> <fm:Form_Option value="31-40" label="31 - 40 years old"> </fm:Form_Select>
Supported attributes
Name | Required | Default | Description |
---|
Most of the attributes you see here are just passed through to the actual select element.