Validation:Validator.Display
Version: -Summary
Returns the display property of the validation message.
Settings
The value is generated automatically.
Remarks
The value is returned as a HTML code snippet containing a style tag.
Examples
Outputting the template tag
@GetObject("Validation:Validator.Display")
Check if tag has a value
@if(!var.IsNullOrWhiteSpace(GetObject("Validation:Validator.Display"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
var storedTag = GetObject("Validation:Validator.Display");
}
Outputting the template tag
<!--@Validation:Validator.Display-->
Check if object has a value
<!--@If Defined(@Validation:Validator.Display)-->
Let's output this tag here: <strong><!--@Validation:Validator.Display--></strong>
<!--@EndIf(@Validation:Validator.Display)-->