fm:Form_CheckBox
fm:Form_Checkbox
The fm:Form_Checkbox component is a quick way to generate a checkbox in an fm:from component of your project.
Example 1:
<fm:Form_Checkbox name="checkbox" value="1" />
Supported attributes
| Name | Required | Default | Description |
|---|---|---|---|
| class | Optional | The css classname that will be assigned to the actual html form field. Note that a few default classes might be added | |
| disabled | Optional | N/A | This will set the html disabled attribute |
| id | Optional | randomized | The id of the form element. Note that this id will also be used for the 'for' attribute in the <label> component |
| label | Optional | N/A | This attribute will be used to generate labels for this component, if it's used within an fm:Form component |
| name | Required | N/A | The name of the form field. This is how the value will be submitted back to the server |
| readonly | Optional | N/A | This sets the html readonly attribute and controls if the user can change the value |
| required | Optional | 0 | Set required to '1' if you'd like the form validator to check if this form element has a value before submitting |
| style | Optional | The style attribute for the actual form component | |
| value | Optional | The current value of the form element |
More examples
Example 2:
Example 3:
developer documentation r22134