[FieldName]

Version: - string  

Summary

The tag corresponds to the name of the field chosen for the detail view of the data list and returns the input of the field.

Settings

The value is based on the Value input field for data lists.

(Data Lists > Lists > Data List > Configure data list panel > Value)

Examples

Outputting the template tag

@GetString("[FieldName]")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("[FieldName]"); }

Outputting the template tag

<!--@[FieldName]-->

Check if string has a value

<!--@If Defined(@[FieldName])--> Let's output this tag here: <strong><!--@[FieldName]--></strong> <!--@EndIf(@[FieldName])-->