UserManagement:User.Item.[FieldSystemName].IsRequired

Version: - boolean  

Summary

Returns True if the user item field is marked as required.

Settings

The value is based on the Required field in the item field settings.

(Management Center - Item types - [Item type] - [Item type field] - Required)

Examples

Outputting the template tag

@GetBoolean("UserManagement:User.Item.[FieldSystemName].IsRequired")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("UserManagement:User.Item.[FieldSystemName].IsRequired"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("UserManagement:User.Item.[FieldSystemName].IsRequired"); }

Outputting the template tag

<!--@UserManagement:User.Item.[FieldSystemName].IsRequired-->

Check if boolean has a value

<!--@If Defined(@UserManagement:User.Item.[FieldSystemName].IsRequired)--> Let's output this tag here: <strong><!--@UserManagement:User.Item.[FieldSystemName].IsRequired--></strong> <!--@EndIf(@UserManagement:User.Item.[FieldSystemName].IsRequired)-->