[Plugin: Contact Form 7] Suggestion for form validation errors
-
I love this plugin! I have one small suggestion, if you’re interested. I don’t know if you’ve considered this already, but I wanted to change the border of my fields to a different color if they didn’t validate correctly. All I did was add the following line to scripts.js at line 130:
into.addClass('missing-required');
So it looks like this now:
var into = $(this); into.addClass('missing-required'); into.append('<span class="wpcf7-not-valid-tip">' + message + '</span>');
And then I just added some simple CSS like this to my theme’s stylesheet:
span.missing-required input, span.missing-required textarea{ border: 1px solid red !important; }
It’s a small usability improvement, but I think it helps.
Dalton
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Contact Form 7] Suggestion for form validation errors’ is closed to new replies.