I apologize in advance if this is an existing feature but I reviewed the docs and tried a few things on my own and couldn't make it work. What I'd like is to add a class to a form input when it fails validation (for instance, in order to put a red border around it).
I figured out a work around which is to add something along the lines of:
for every single field I want to validate, but it'd be preferable to be able to add a class on error and use a single style rule for all erred text fields.
I figured out a work around which is to add something along the lines of:
- Code: Select all
<cms:if k_error_email>
<style type="text/css">
#email{border:1px solid red}
</style>
</cms:if>
for every single field I want to validate, but it'd be preferable to be able to add a class on error and use a single style rule for all erred text fields.