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