How can I add the red error border to a webform component programmatically?
I am doing so custom form validation when the form submits and I need to set the red border on under rules very specific to my module.
Currently, I am doing the following:
form_set_error('email_address', 'Please supply matching email addresses');
It adds an error message and stops the form from being submitted but it does not highlight the form field I am validating. That makes it difficult for the users to see the problem area at a glance