Form.Fields.[FieldSystemName].MaxLength

Version: - string  

Summary

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("Form.Fields.[FieldSystemName].MaxLength")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Form.Fields.[FieldSystemName].MaxLength"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Form.Fields.[FieldSystemName].MaxLength"); }

Outputting the template tag

<!--@Form.Fields.[FieldSystemName].MaxLength-->

Check if string has a value

<!--@If Defined(@Form.Fields.[FieldSystemName].MaxLength)--> Let's output this tag here: <strong><!--@Form.Fields.[FieldSystemName].MaxLength--></strong> <!--@EndIf(@Form.Fields.[FieldSystemName].MaxLength)-->