Forums

Add a Green tick and red border

Kronosites 11 Jan, 2016
Hello,

I would like to add two things into my form:

1- Show the boxes with red border if they are empty.
2- Show a "green tick" (like "OK, is correct") when users add some data to a box and this is correct. Or, at least, show this when a box is not empty.

How can I do it?
GreyHead 11 Jan, 2016
Hi Kronosites,

I imagine that this could be done fairly easily with JavaScript and CSS but I don't know exactly how. Also the ChronoForms validation library may not be the best to handle this as it isn't easy to add 'hooks' to change the element class when it it validated. I've been looking a little at using the jQuery Validation Plugin and that might make this simpler.

Bob
This topic is locked and no more replies can be posted.