OpenWGA 7.1 - WebTML reference
WebTML tags » input<tml:input type="boolean" >
Purpose:
Creates an input field for a boolean value.
Description:
This input type will create a boolean input field. The value will be stored as native boolean value on the TML form and in the corresponding document.
The input type has two modes:
The input type has two modes:
- Within the standard mode the tag renders a check box which can be either checked 'true' or not 'false'. This is chosen when there are no options defined or only a single option of value "true".
- In the extended mode it is possible to define aliases for the values 'true' and 'false' within the attribute options. In this case the tag will render two radio buttons instead of a check box. In contrast to type="radio" the selected value will be stored as boolean in the backend document and not as string.
Examples:
Standard mode:
Extended mode:
Please confirm that you have read our standard business terms:
<tml:input name="confirmSBT" type="boolean"/>
<tml:input name="confirmSBT" type="boolean" options="Yes, I have!|true"/>
Extended mode:
Please confirm that you have read our standard business terms:
<tml:input name="confirmSBT" type="boolean" options="I confirm|true,I do not confirm|false"/>