Boolean
Boolean represents either Yes or No. Boolean will accept synonyms such as True and False, and 1 and 0. Any non-zero number evaluates to Yes. If the form is valid, Boolean always returns either Yes or No — "" evaluates to No, so setting the Required attribute on a Boolean datatype is meaningless. The default format for the Boolean datatype is boolean (which generates a single checkbox), although other options are demonstrated below.
Two special attributes are available for Boolean:
-
YesSynonyms
Optional. A list of other words that may be used as synonyms for "Yes." For example: "accept,oui". These synonyms are only relevant where the field's format permits freeform data entry, e.g.:<cf_terrafield name="accept" caption="Do you accept the terms and conditions?" datatype="boolean" format="text" />
-
NoSynonyms
Optional. A list of other words that may be used as synonyms for "No." For example: "decline,non".
