How to init forms manually?
-
Hi,
I have forms on my site which are generated using jQuery after visitor makes certain actions on my site so the form is not on the site on initial page load.
I am getting my forms HTML printed correctly with correct form ids etc. now but the problem is there’s no eventListeners for my forms because the forms are created after CF7 javascript is loaded.
So how can I init my forms manually after CF7 javascript is already loaded and the form is generated after that on the page?
I found this tutorial which mentions a function
wpcf7.initForm($form);
but apparently that is from an old version of the plugin:
https://bensinger.me/contact-form-7-fixing-wpcf7-initform-not-function-error/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to init forms manually?’ is closed to new replies.