Item.Page.Decimal.Validation.ErrorMessage
Version: - stringSummary
Returns error message displayed if the field in not validated, related to Errorr message field in the field definition.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Item.Page.Decimal.Validation.ErrorMessage")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Item.Page.Decimal.Validation.ErrorMessage"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Item.Page.Decimal.Validation.ErrorMessage");
}
Outputting the template tag
<!--@Item.Page.Decimal.Validation.ErrorMessage-->
Check if string has a value
<!--@If Defined(@Item.Page.Decimal.Validation.ErrorMessage)-->
Let's output this tag here: <strong><!--@Item.Page.Decimal.Validation.ErrorMessage--></strong>
<!--@EndIf(@Item.Page.Decimal.Validation.ErrorMessage)-->