How to change the template for (error) messages with userforms?


#1

Silverstripe Version:
4

Question:
I want to add extra classes to the error messages of userforms. How to do this?

<span id="UserForm_Form_34_EditableTextField_60d74-error" class="error message">This field is required</span>