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