Contact Form error isn't cleared when addressed
When implementing a Contact Form and not filling a field in on the front end which is required, when you get the This *Field Name* field is required error, once the user fills the field the error still remains.
Is your form ajax submittable?
Yes using fwForm.initAjaxSubmit
I can't reproduce this.
-
Open this page
-
Run this script in browser console (copy/paste -> Enter)
-
Run in console
fwForm.initAjaxSubmit({ajaxUrl: '../wp-admin/admin-ajax.php'}); -
Fill all contact form inputs with a space (to prevent browser required input warning) and press Submit
All inputs will have errors.
-
Fill some inputs with characters and press Submit.
The errors will disappear.
P.S. See this function
Thanks :+1: