Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Contact Form error isn't cleared when addressed

Open martinburdon opened this issue 11 years ago • 4 comments

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.

martinburdon avatar Jun 05 '15 20:06 martinburdon

Is your form ajax submittable?

ghost avatar Jun 05 '15 21:06 ghost

Yes using fwForm.initAjaxSubmit

martinburdon avatar Jun 05 '15 21:06 martinburdon

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

ghost avatar Jun 06 '15 08:06 ghost

Thanks :+1:

martinburdon avatar Jun 06 '15 18:06 martinburdon