I use the “Register” extra with Modx 2.8.
Each label has a span element for the errors to display right above the field.
The error messages in the span elements work fine.
But now, I would like to have also a short text above the form.
<legend>There are errors in the registration form</legend>
I tried the following placeholder but they are empty: [[+reg.error]],[[+reg.errors]],[[+reg.error.message]],[[+reg.errors.message]]
I think I will have to do some custom code in php.
Before I start coding this I would like to know maybe someone has a better approach than me.
I tried to use the modx input/output filters however the OR condition cannot compare two placeholders. The OR works only for a single placeholder.
I will try to do this message using php but if someone has a better solution for me please let me know