Form.Fields.[FieldSystemName].Checked
Version: - stringSummary
Returns the value "Checked" if a check box by default is checked in the form.
Settings
The value is based on the Default selection
dropdown (selected) for a field.
(Data Lists > Forms > Form > Field > General tab > Default selection)
Examples
Outputting the template tag
@GetString("Form.Fields.[FieldSystemName].Checked")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Form.Fields.[FieldSystemName].Checked"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Form.Fields.[FieldSystemName].Checked");
}
Outputting the template tag
<!--@Form.Fields.[FieldSystemName].Checked-->
Check if string has a value
<!--@If Defined(@Form.Fields.[FieldSystemName].Checked)-->
Let's output this tag here: <strong><!--@Form.Fields.[FieldSystemName].Checked--></strong>
<!--@EndIf(@Form.Fields.[FieldSystemName].Checked)-->