Class
CheckBoxField

Binary choice field that toggles on/off; supports custom export value and configurable appearance.

Definition

Constructors

CheckBoxField(string)

Initialize a new CheckBoxField with the provided name.

Declaration

cs-api-definition
public CheckBoxField(string fieldName)

Parameters

fieldName

string

The field name.

Properties

ExportValue

Gets or sets the value exported when the checkbox is checked; unchecked exports nothing by default.

Declaration

cs-api-definition
public string ExportValue { get; set; }

Property Value

string

FieldType

Gets the field category reported to viewers for rendering and processing.

Declaration

cs-api-definition
public override sealed FormFieldType FieldType { get; }

Property Value

FormFieldType

Overrides FormField.FieldType

IsChecked

Gets or sets whether the checkbox is currently selected.

Declaration

cs-api-definition
public bool IsChecked { get; set; }

Property Value

bool

IsCheckedByDefault

Gets or sets whether the checkbox is selected when the form is reset to defaults.

Declaration

cs-api-definition
public bool IsCheckedByDefault { get; set; }

Property Value

bool