"bool"
Purpose: specifies a state based on "yes/no" principle
Field type in SQL table: "tinyint"
Additional parameters
"required"
Purpose: makes this field mandatory for filling when creating/editing record, for "bool" type this property in webforms usually means a call for attention to mark a checkbox (for example "I agree with rules", "I confirm", i.e. for passing the check you should mark this field)
Possible values: "true", "false"
By default: "false"
"on_create"
Purpose: default initial value when creating a new record in admin panel
Possible values: "true", "false"
By default: "false"
"quick_change"
Purpose: provides a possibility in admin panel for a quick change of field value by a click on its icon in main table with all records
Possible values: "true", "false"
By default: "true"
Samples
array("Activate", "bool", "active") array("Display in menu", "bool", "in_menu", array("on_create" => true)) array("New product", "bool", "new_product") array("Display on homepage", "bool", "index_page")
Previous section
General characteristics