Form.LabelRequired
Version: - stringSummary
Returns the path to the selected icon to mark the field as required.
Settings
The value is generated automatically but is based on the selection in the Icon for required field field in the form settings.
(Modules > Forms for editors > Form > Settings)
Examples
Outputting the template tag
@GetString("Form.LabelRequired")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Form.LabelRequired"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Form.LabelRequired");
}
Outputting the template tag
<!--@Form.LabelRequired-->
Check if string has a value
<!--@If Defined(@Form.LabelRequired)-->
Let's output this tag here: <strong><!--@Form.LabelRequired--></strong>
<!--@EndIf(@Form.LabelRequired)-->