Access checkbox fields
Version:
You can use the Sitecore.Data.Fields.CheckboxField class to access data template fields of type Checkbox. To determine if the user has selected a Checkbox, access the Sitecore.Data.Fields.CheckboxField.Checked property. For example, to determine if the Checkbox field named CheckboxField is selected in the /Sitecore/Content/Home item in the Master database:
To select a Checkbox field, set the Sitecore.Data.Fields.CheckboxField.Checked property. For example, to ensure the Checkbox field named CheckboxField is selected in the /Sitecore/Content/Home item in the Master database: