Field.Control

Version: - string  

Summary

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("Field.Control")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Field.Control"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Field.Control"); }

Outputting the template tag

<!--@Field.Control-->

Check if string has a value

<!--@If Defined(@Field.Control)--> Let's output this tag here: <strong><!--@Field.Control--></strong> <!--@EndIf(@Field.Control)-->