Font size:
FormConditional
FormConditional is a variant of Conditional designed to be used in a Form, similar to the relationship between Foreach and ListEdit. It is used to guarantee that the data will be the same during rendering and rewind when a form is submitted avoiding a stale link. On render, FormConditional reads condition parameter, stores it into a hidden field, and could render or not according to condition value. On rewind, the FormConditional ignores condition parameter, reads the stored value, and could render or not matching previous render.
Warning
See also: Conditional, Form If
Parameters
Name | Type | Direction | Required | Default | Description |
---|---|---|---|---|---|
condition | boolean | in | yes | The condition to evaluate. | |
element | String | in | no | The element to emulate. If specified, then the component acts like an Any, emitting an open and close tag. Informal parameters are applied to the tag. If no element is specified, informal parameters are ignored. | |
listener | String | in | no | The listener, informed at render. | |
conditionValue | boolean | custom | no | The value of the condition. During render this is obtained from the condition parameter. During rewind it is the submitted condition. |
Body: allowed
Informal parameters: allowed
Reserved parameters: invert
Examples
Please see the documentation for the If component.