CustomField.Value
Version: - stringSummary
Returns the content of the user custom field.
Settings
The value is based on the custom user field for a user.
(User Management > User > User tab > Custom fields panel >[Custom field])
Examples
Outputting the template tag
@GetString("CustomField.Value")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("CustomField.Value"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("CustomField.Value");
}
Outputting the template tag
<!--@CustomField.Value-->
Check if string has a value
<!--@If Defined(@CustomField.Value)-->
Let's output this tag here: <strong><!--@CustomField.Value--></strong>
<!--@EndIf(@CustomField.Value)-->