[SINCE Orbeon Forms 2016.1]
fr:yesno-inputcomponent displays a simple choice between "Yes" and "No". It stores a value of
truewhen "Yes" is selected and
falsewhen "No" is selected.
This control is generally recommended over the Checkbox Input Component for binary (or boolean) selection, because:
- A "Yes/No" choice is usually clearer to the user.
- The control can be marked as "Required", in which case he user has to make a selection to pass validation. With a single checkbox, it is easier to miss making a selection.
[SINCE Orbeon Forms 2023.1]
A "Clear value" button is available in Form Builder to clear the value of the control without editing the source of the form definition or recreating the control.
fr:yesno-inputlike a regular XForms controls. Example:
<xf:label>Are you a happy camper?</xf:label>