Form.Field.[FieldSystemName].Description

Version: - string  

Summary

Returns the description of the field.

Settings

The value is based on the Description field in the field settings.

(Modules > Forms for editors > Form > Edit field > Settings > Description)

Examples

Outputting the template tag

@GetString("Form.Field.[FieldSystemName].Description")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Form.Field.[FieldSystemName].Description"); }

Outputting the template tag

<!--@Form.Field.[FieldSystemName].Description-->

Check if string has a value

<!--@If Defined(@Form.Field.[FieldSystemName].Description)--> Let's output this tag here: <strong><!--@Form.Field.[FieldSystemName].Description--></strong> <!--@EndIf(@Form.Field.[FieldSystemName].Description)-->