KonstantinCodes / mautic-recaptcha

This Plugin brings reCAPTCHA integration to mautic.
GNU General Public License v3.0
50 stars 29 forks source link

Websites with more than one form. #18

Open digitalsmithy opened 5 years ago

digitalsmithy commented 5 years ago

For various reasons I need to manually copy form code onto my sites. Previously re-captcha added 'callback' script into the body of the form. Now it adds it to the header script - which is a disaster because the script targets ONE form. It means you can have only one form across an entire website. Of course, I have many - quote, contact, subscribe etc. so have to strip out the script and manually add it back in per form. Could the plugin please revert to adding code per-form - or some other method that doesn't limit me to one form per site. Thanks.

KonstantinCodes commented 5 years ago

@digitalsmithy Thanks for the comment on this use case. I'll look into that.

digitalsmithy commented 5 years ago

Hi @KonstantinCodes - thanks for the work on making each captcha unique. There's a very small issue still. When Mautic renders the manual form, the captcha script is rendered in the 'header code' script section. So to use the forms you have to copy the form HTML code, then copy just the captcha script from the 'header code' and manually insert that into the form HTML. Is it possible to have the captcha script (with the unique ID) render in the form? Really appreciate the work you do on this plugin. Mike