Boolean Field
From Sense/Net Wiki
- 100%
- 6.0
- Enterprise
- Community
Planned
Overview
The Boolean Field is used for storing a boolean value (true or false).
Details
Field handler
- handler: SenseNet.ContentRepository.Fields.BooleanField
- short name: Boolean
Usage in CTD:
<Field name="IsSystemContent" type="Boolean"> ... </Field>
Supported Field Controls
- Boolean Field Control: a simple Checkbox control where the user can select the value to be true or false
Configuration
There are no specific properties defined for this Field Control besides the common properties.
For a complete list of common Field Setting configuration properties see CTD Field definition.
Example/Tutorials
Fully featured example:
<Field name="RequiresRegistration" type="Boolean"> <DisplayName>Requires registration</DisplayName> <Configuration> <VisibleBrowse>Hide</VisibleBrowse> <VisibleEdit>Advanced</VisibleEdit> <VisibleNew>Advanced</VisibleNew> </Configuration> </Field>
The above example configures the Reference Field so that:
- display name will be Requires registration
- the field will be hidden in browse mode and it will be under the advanced fields in edit and new mode when the Content is displayed with Generic Content View.