Field.MaxLength
Version: - stringSummary
Returns the maximum length of the field input.
Settings
The value is generated automatically and based on the chosen type of field.
Examples
Outputting the template tag
@GetString("Field.MaxLength")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Field.MaxLength"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Field.MaxLength");
}
Outputting the template tag
<!--@Field.MaxLength-->
Check if string has a value
<!--@If Defined(@Field.MaxLength)-->
Let's output this tag here: <strong><!--@Field.MaxLength--></strong>
<!--@EndIf(@Field.MaxLength)-->