hCaptcha / hcaptcha-wordpress-plugin

hCaptcha.com support for Wordpress (Plugin)
GNU General Public License v2.0
80 stars 32 forks source link

Form in popu windows Vs hcaptcha #367

Closed Vinks007Mp3 closed 2 weeks ago

Vinks007Mp3 commented 2 weeks ago

Hi I have a contact form included in a popup window which is launched by clicking a button (Enquire) on the main page but It seems that hcaptcha does not work when the form is included in a popup window: any suggestion welcome.

Site under Wordpress I use WP Form and WP SMTP I need to retrieve the main page ID and transmit it to the contact form so I know the item/ref that may interest the client. So the question is: can I use hcpaptcha in my contact form which is in my popup windows ? Thanks !

kagg-design commented 2 weeks ago

Hi,

Upon creation of the popup window, you should call window.hCaptchaBindEvents() to connect hCaptcha to the form. See a popup example in this JS file.

However, your case could be more complicated, and for an exact answer, I have to see the page. Nevertheless, the main idea is always the same.

Vinks007Mp3 commented 2 weeks ago

Hi Kagg Thanks for taking the time to answer my message. I'm not a developper therefore I won't be able to code it. I'll try recaptcha.