hreilly / gvhomes.com

https://www.gvhomes.com
0 stars 0 forks source link

Fix double loading of RECAPTCHA on variable form shortcode #16

Open hreilly opened 5 years ago

hreilly commented 5 years ago

If multiple versions of the form are loaded on a single page, RECAPTCHA is requiring the the box be checked on the last occurrence of the form. RECAPTCHA should only load once. Note: this didn't seem to be an issue on the development site and only presented once we brought the site live. For now, I've disabled the footer version of the shortcode and am only using the page specific codes.

hreilly commented 5 years ago

Discovered that this has to do with setting data persistence to "true" in featherlight. Not sure if there is a good way around this using the current lightbox plugin and trying to keep the user on the same page. The reason I turn persistence on is so Active Campaign doesn't direct users to a confirmation page on form submission.