Ecom:Cart.ValidationError.ErrorMessage
Version: - stringSummary
Returns the validation error message associated with the particular field.
Settings
The value is based on the Error message input field under the paragraph settings.
(Page > Paragraph > Module tab > Enable validation panel)
Examples
Outputting the template tag
@GetString("Ecom:Cart.ValidationError.ErrorMessage")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Cart.ValidationError.ErrorMessage"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Cart.ValidationError.ErrorMessage");
}
Outputting the template tag
<!--@Ecom:Cart.ValidationError.ErrorMessage-->
Check if string has a value
<!--@If Defined(@Ecom:Cart.ValidationError.ErrorMessage)-->
Let's output this tag here: <strong><!--@Ecom:Cart.ValidationError.ErrorMessage--></strong>
<!--@EndIf(@Ecom:Cart.ValidationError.ErrorMessage)-->