Validation.Validator.Message

Version: -  

Summary

Returns the validation message.

Settings

The value comes from the validation message fields.

(Page > Paragraph > Module tab > Frontend editing > Frontend editing panel)

Examples

Outputting the template tag

@GetObject("Validation.Validator.Message")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("Validation.Validator.Message"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("Validation.Validator.Message"); }

Outputting the template tag

<!--@Validation.Validator.Message-->

Check if object has a value

<!--@If Defined(@Validation.Validator.Message)--> Let's output this tag here: <strong><!--@Validation.Validator.Message--></strong> <!--@EndIf(@Validation.Validator.Message)-->