Form.Field.[FieldSystemName].Name

Version: - string  

Summary

Returns the name of the field.

Settings

The value is based on the Text/label field for the field.

(Modules > Forms for editors > Form > Edit field > Settings > Text/label)

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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