5.5.3.3
Hi,
I’ve built a custom form and I need to highlight form fields whenever an error occurs, using a red border for example.
I’ve created a suitable CSS class to toggle the red border and I’ve successfully used %begin_question_error_123456_q1% (for example) to dynamically add it to HTML textareas in the Details screen > Extras field but, when it comes to regular HTML inputs, %begin_question_error_… doesn’t work! - it simply outputs the CSS class every time, regardless of whether the field is in error or not.
Is this a bug in Squiz which only affects HTML input fields or is this intentional? If it’s intentional, how can I get around it, preferably without relying on JS.
Cheers.