Form.Field.[FieldSystemName].Type
Version: - stringSummary
Returns the type of the field.
Settings
The value is generated automatically but is based on the selection in the Type field in field setings.
(Modules > Forms for editors > Form > Edit field > Settings > Type)
Examples
Outputting the template tag
@GetString("Form.Field.[FieldSystemName].Type")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Form.Field.[FieldSystemName].Type"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Form.Field.[FieldSystemName].Type");
}
Outputting the template tag
<!--@Form.Field.[FieldSystemName].Type-->
Check if string has a value
<!--@If Defined(@Form.Field.[FieldSystemName].Type)-->
Let's output this tag here: <strong><!--@Form.Field.[FieldSystemName].Type--></strong>
<!--@EndIf(@Form.Field.[FieldSystemName].Type)-->