Field.Width
Version: - integerSummary
Returns the width of the field in frontend.
Settings
The value is based on the Width
input field for a field.
(Data Lists > Forms > Form > Field > General tab > Width)
Examples
Outputting the template tag
@GetInteger("Field.Width")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Field.Width"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Field.Width");
}
Outputting the template tag
<!--@Field.Width-->
Check if integer has a value
<!--@If Defined(@Field.Width)-->
Let's output this tag here: <strong><!--@Field.Width--></strong>
<!--@EndIf(@Field.Width)-->