Form.LabelBold
Version: - booleanSummary
Returns True if the field name is marked to be bold. False otherwise.
Settings
The value is generated automatically but is based on the selection in the Bold field name field in the form settings.
(Modules > Forms for editors > Form > Settings)
Examples
Outputting the template tag
@GetBoolean("Form.LabelBold")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Form.LabelBold"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Form.LabelBold");
}
Outputting the template tag
<!--@Form.LabelBold-->
Check if boolean has a value
<!--@If Defined(@Form.LabelBold)-->
Let's output this tag here: <strong><!--@Form.LabelBold--></strong>
<!--@EndIf(@Form.LabelBold)-->