If you want to show a general message when the validation fails, you can use the property validationErrorMessage and the placeholder validation_error_message
[[!Register?
&validationErrorMessage=`<legend>There are errors in the registration form</legend>`
&placeholderPrefix=`reg.`
...
]]
...
[[!+reg.validation_error_message]]
or alternatively the placeholder validation_error (which is a boolean).
[[!+reg.validation_error:is=`1`:then=`<legend>There are errors in the registration form</legend>`]]
The placeholder [[!+reg.error.message]] is only filled when the validation is successful but a prehook returns an error or the register processor fails.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.