Form does not submit correctly when detached and then reattached to DOM.
-
I was using a different, very bare bones constant contact plugin that wsa disabled so I’m switching over to this one.
I’m trying to get this form to show up on a little popup on a full page overlay when the user clicks the subscribe to mailing list button.
The way I’ve done this was to add it to the sidebar, hide it, and then detach it from the DOM and reattach it into the popup. The form shows up fine, but it doesn’t submit this way.
The form submits fine when I submit it from the sidebar, but I get an error when submitting it from the the overlay.
Here is the website, each page has the link on the sidebar, many have it in multiple other places: https://www.iqim.org/v2/
The error I get is:
Uncaught TypeError: Cannot read property ‘status’ of null
at Object.success (ctct-plugin-frontend.min.js?ver=1.2.1:1)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at y (jquery.js?ver=1.12.4:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4:4)
(anonymous) @ ctct-plugin-frontend.min.js?ver=1.2.1:1
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
y @ jquery.js?ver=1.12.4:4
c @ jquery.js?ver=1.12.4:4I tried to go in to turn debugging on by adding the following to my WP Config file right below the WP_DEBUG constant:
define(‘CONSTANT_CONTACT_DEBUG’, true);
define(‘CONSTANT_CONTACT_DEBUG_MAIL’, true);Doing this didn’t switch to the non-minimized JS.
Any idea what I’m doing wrong?
Any help would be greatly appreciated.
Thanks for reading!!!
- The topic ‘Form does not submit correctly when detached and then reattached to DOM.’ is closed to new replies.