Field.Required

Version: - string  

Summary

Returns the value "True" if the field is required.

Settings

The value is based on the Required check box for a field.

(Data Lists > Forms > Form > Field > Required)

Examples

Outputting the template tag

@GetString("Field.Required")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Field.Required"); }

Outputting the template tag

<!--@Field.Required-->

Check if string has a value

<!--@If Defined(@Field.Required)--> Let's output this tag here: <strong><!--@Field.Required--></strong> <!--@EndIf(@Field.Required)-->