Form.Fields.[FieldSystemName].ValidationValue

Version: - string  

Summary

Returns the validation value for the field.

Settings

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

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

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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