Form.Fields.[FieldSystemName].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("Form.Fields.[FieldSystemName].Width")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Form.Fields.[FieldSystemName].Width"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Form.Fields.[FieldSystemName].Width");
}
Outputting the template tag
<!--@Form.Fields.[FieldSystemName].Width-->
Check if integer has a value
<!--@If Defined(@Form.Fields.[FieldSystemName].Width)-->
Let's output this tag here: <strong><!--@Form.Fields.[FieldSystemName].Width--></strong>
<!--@EndIf(@Form.Fields.[FieldSystemName].Width)-->