UserManagement:User.Item.Fields
Summary
The UserManagement:User.Item.Fields loop lets you display various information about the user item fields.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
UserManagement:User.Item.[FieldSystemName]
Returns the content of the user custom field.
@GetString("UserManagement:User.Item.[FieldSystemName]")
UserManagement:User.Item.[FieldSystemName].First
Returns True if filed with [FieldSystemName] system name is first.
@GetString("UserManagement:User.Item.[FieldSystemName].First")
UserManagement:User.Item.[FieldSystemName].IsRequired
Returns True
if the user item field is marked as required.
@GetBoolean("UserManagement:User.Item.[FieldSystemName].IsRequired")
UserManagement:User.Item.[FieldSystemName].Last
Returns True
if the user item field is the first in the list.
@GetBoolean("UserManagement:User.Item.[FieldSystemName].Last")
UserManagement:User.Item.[FieldSystemName].Name
Returns True
if the user item field is the last in the list.
@GetBoolean("UserManagement:User.Item.[FieldSystemName].Name")
UserManagement:User.Item.[FieldSystemName].SystemName
Returns the system name of the item field.
@GetString("UserManagement:User.Item.[FieldSystemName].SystemName")
UserManagement:User.Item.[FieldSystemName].Type
Returns the type of the item field.
@GetString("UserManagement:User.Item.[FieldSystemName].Type")
UserManagement:User.Item.[FieldSystemName].Value
Returns the content of the user item field.
@GetString("UserManagement:User.Item.[FieldSystemName].Value")
UserManagement:User.Item.Field
Returns the content of the user item field.
@GetString("UserManagement:User.Item.Field")
UserManagement:User.Item.Field.First
Returns True if the field is first, ca be based on sort order set within the field's group in the item type definition.
@GetString("UserManagement:User.Item.Field.First")
UserManagement:User.Item.Field.IsRequired
Returns True
if the user item field is marked as required.
@GetBoolean("UserManagement:User.Item.Field.IsRequired")
UserManagement:User.Item.Field.Last
Returns True
if the user item field is the first in the list.
@GetBoolean("UserManagement:User.Item.Field.Last")
UserManagement:User.Item.Field.Name
Returns True
if the user item field is the last in the list.
@GetBoolean("UserManagement:User.Item.Field.Name")
UserManagement:User.Item.Field.SystemName
Returns the system name of the item field.
@GetString("UserManagement:User.Item.Field.SystemName")
UserManagement:User.Item.Field.Type
Returns the type of the item field.
@GetString("UserManagement:User.Item.Field.Type")
UserManagement:User.Item.Field.Value
Returns the content of the user item field.
@GetString("UserManagement:User.Item.Field.Value")
Available loops
UserManagement:User.Item.[FieldSystemName].Options
The UserManagement:User.Item.[FieldSystemName].Options
loop lets you display information about options for the item type field has [FieldSystemName] system name.
@foreach (LoopItem item in GetLoop("UserManagement:User.Item.[FieldSystemName].Options")){ <p>@item.GetValue("TagName")</p> }
UserManagement:User.Item.Field.Options
The UserManagement:User.Item.Field.Options
loop lets you display available information about options.
@foreach (LoopItem item in GetLoop("UserManagement:User.Item.Field.Options")){ <p>@item.GetValue("TagName")</p> }