Form.Fields.[FieldSystemName].Control
Version: - stringSummary
Contains the HTML needed for rendering the field type, e.g. like this: <input type="checkbox" checked="checked" id="ManualForm_Checkbox" name="ManualForm_Checkbox" value="" />
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Form.Fields.[FieldSystemName].Control")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Form.Fields.[FieldSystemName].Control"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Form.Fields.[FieldSystemName].Control");
}
Outputting the template tag
<!--@Form.Fields.[FieldSystemName].Control-->
Check if string has a value
<!--@If Defined(@Form.Fields.[FieldSystemName].Control)-->
Let's output this tag here: <strong><!--@Form.Fields.[FieldSystemName].Control--></strong>
<!--@EndIf(@Form.Fields.[FieldSystemName].Control)-->