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