Form.Field.[FieldSystemName].DefaultValue

Version: - string  

Summary

Returns the default value for the field.

Settings

The value is based on the Default value field in the Values section for the field.

(Modules > Forms for editors > Form > Edit field > Layout > Css Class)

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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