Dynamicall filled fields not working when using updated WordPress jQuery library
-
Hi Contact Form 7 forum
I have been using a dynamically filled field on a contact form 7 page (field named ‘Strongest track” on page: https://bit.ly/3nxNmrQ ) that’s worked fine until recently when I updated WordPress to 5.5/6. Since then I have learned about WordPress’s latest updates (5.5 onward) no longer supporting legacy jQuery (see here: https://www.a2hosting.com/blog/jquery-conflicts-fix-wordpress-5-5/)
I’m enqueueing a vanilla javascript into the page’s footer that fills the dynamic field on the form. Having discussed the issue with people on StackOverflow it seems that javascript is working fine but the fact that the field is no longer being dynamically filled may be due to something in the Contact Form 7 plugin that needs to be updated to work with WordPress 5.5 upwards.
This idea is consolidated further when I installed the “jQuery Migrate Helper” plugin that allows you to switch back to the older/pre WordPress 5.5 “legacy 1.12.4-wp” version of jQuery. When this older legacy version of jQuery is switched in, the dynamic field on the form populates perfectly! However, they’re keen to stress that using the “jQuery Migrate Helper” plugin is only a temporary solution and that any issues need to be sorted ASAP.
Regarding the above, is anyone able to shed some light on this problem & how I can resolve it? When viewing the page via Chrome Developer tools I notice there’s a “Contact Form 7” script that loads after my javascript – maybe that’s where the issue is – I don’t know!
If someone was able to help me with this, i’d be most appreciative.
At the moment I’m using an Avada theme (v 7.2.1) on a wordpress site (v 5.6.1) and the latest version of the Contact Form 7 (v 5.3.2).
Many thanks
PhilThe page I need help with: [log in to see the link]
- The topic ‘Dynamicall filled fields not working when using updated WordPress jQuery library’ is closed to new replies.