Form.Field.[FieldSystemName].TextAreaHeight

Version: - integer  

Summary

Returns the height (lines) of the field of type text area.

Settings

The value is based on the Height field in the Layout settings for the field.

(Modules > Forms for editors > Form > Edit field > Layout > Layout > Height (lines))

Examples

Outputting the template tag

@GetInteger("Form.Field.[FieldSystemName].TextAreaHeight")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Form.Field.[FieldSystemName].TextAreaHeight"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Form.Field.[FieldSystemName].TextAreaHeight"); }

Outputting the template tag

<!--@Form.Field.[FieldSystemName].TextAreaHeight-->

Check if integer has a value

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