Field.Size

Version: - integer  

Summary

Returns the size of the field in pixels (px).

Settings

The value is based on the Size (px) field in the Layout settings for the field.

(Modules > Forms for editors > Form > Edit field > Layout > Layout > Size (px))

Examples

Outputting the template tag

@GetInteger("Field.Size")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("Field.Size"); }

Outputting the template tag

<!--@Field.Size-->

Check if integer has a value

<!--@If Defined(@Field.Size)--> Let's output this tag here: <strong><!--@Field.Size--></strong> <!--@EndIf(@Field.Size)-->