Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage

Version: - string  

Summary

Returns the orderline validation error message.

Settings

The value is generated on basis of the error message created in Paragraph settings -> Enable validation -> Error message.

Examples

Outputting the template tag

@GetString("Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage"); }

Outputting the template tag

<!--@Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage-->

Check if string has a value

<!--@If Defined(@Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage)--> Let's output this tag here: <strong><!--@Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage--></strong> <!--@EndIf(@Ecom:Order:OrderLine.OrderLineField.ValidationErrorMessage)-->