Item.Area.[FieldSystemName].IsRequired

Version: - string  

Summary

Returns True if the website item field is marked as required - otherwise False.

Settings

The value is generated automatically.

Remarks

Based on the item field for the item type that is used for the website.

Examples

Outputting the template tag

@GetString("Item.Area.[FieldSystemName].IsRequired")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Item.Area.[FieldSystemName].IsRequired"); }

Outputting the template tag

<!--@Item.Area.[FieldSystemName].IsRequired-->

Check if string has a value

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