Difference between revisions of "Boolean field"
(→Description) |
(→Properties) |
||
Line 11: | Line 11: | ||
| name || default || description | | name || default || description | ||
|- | |- | ||
− | | '''input_style''' || checkbox || May be one of (menu|radio|checkbox). This controls how the field is rendered in input forms. | + | | '''input_style''' || checkbox || May be one of (menu<nowiki>|</nowiki>radio<nowiki>|</nowiki>checkbox). This controls how the field is rendered in input forms. |
Checkbox gives just a single HTML checkbox which can be ticked or not. It looks a bit rubbish, and does not provide a way to say | Checkbox gives just a single HTML checkbox which can be ticked or not. It looks a bit rubbish, and does not provide a way to say | ||
|} | |} | ||
− | |||
== Required Phrases == | == Required Phrases == |
Revision as of 14:16, 9 January 2007
Description
Describes a simple yes/no value. Unless the field has the required property set, it can actually have a third setting of unset. This can be useful as it distinguishes between a "False" and a "don't know/haven't filled this in yet". For example when asking if a paper is refereed, this is a boolean field. However it's not required as often someone isn't sure, and does not want to click "no" when that's not necessarily true.
Properties
name | default | description |
input_style | checkbox | May be one of (menu|radio|checkbox). This controls how the field is rendered in input forms.
Checkbox gives just a single HTML checkbox which can be ticked or not. It looks a bit rubbish, and does not provide a way to say |