Form.Field.[FieldSystemName].Append
Version: - stringSummary
Returns appended HTML for the field.
Settings
The value is based on the Append field in the Layout section.
(Modules > Forms for editors > Form > Edit field > Layout > Fields > Append)
Remarks
Append is e.g. used in Bootstrap for adding e.g. a fixed currency symbol before a number field like this $ [number field], where $ is the append.
Examples
Outputting the template tag
@GetString("Form.Field.[FieldSystemName].Append")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Form.Field.[FieldSystemName].Append"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Form.Field.[FieldSystemName].Append");
}
Outputting the template tag
<!--@Form.Field.[FieldSystemName].Append-->
Check if string has a value
<!--@If Defined(@Form.Field.[FieldSystemName].Append)-->
Let's output this tag here: <strong><!--@Form.Field.[FieldSystemName].Append--></strong>
<!--@EndIf(@Form.Field.[FieldSystemName].Append)-->