Form.Fields.[FieldSystemName].DefaultValue

Version: - string  

Summary

Returns the default value of a field.

Settings

The value is based on the Default value input field for a field.

(Data Lists > Forms > Form > Field > General tab > Default value)

.

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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