felixarntz / bootstrap-for-contact-form-7

This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
https://wordpress.org/plugins/bootstrap-for-contact-form-7/
GNU General Public License v2.0
24 stars 18 forks source link

Display of validation errors no longer working after update to CF7 version 4.8 #47

Closed cpruitt closed 7 years ago

cpruitt commented 7 years ago

It looks like CF7 version 4.8 introduces changes to the way CF7's JS / AJAX works. When using BS-for-CF7 this means that upgrading to CF7 version 4.8 causes problems with the display of validation errors (meaning, you don't see any). You still see a single error display letting you know that there were errors, but none of the fields receive the proper error classes or error message text.

You should be able to reproduce by simply using BS-for-CF7 with an installation of CF7 4.8.

I am by no means very familiar with either the CF7 or the BS-for-CF7 source so I can't really venture a guess as to what specific changes are causing the problem. From a quick look at the returned ajax responses it looks like maybe some relevant CSS selectors have changed but it may be more involved than that.