Form.Field.[FieldSystemName].AutoValue

Version: - string  

Summary

Returns the system name of the field that is selected as automatic value for the field, e.g. AccessUserName if Name is selected as automatic value.

Settings

The value is based on the Automatic value field in the field values section.

(Modules > Forms for editors > Form > Edit field > Values > Values > Automatic value)

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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