According to this page: reCAPTCHA v2 | Google for Developers you can do this in two lines of code. First, though, you have to sign up and get your site key. This will require that you register the actual domain where you plan to use the captcha, This also means that it won’t work when you preview locally or view in a browser on your Mac, only when it is served from the same domain where your key is registered. You will need a separate key for each different site you build, assuming they have different domains. I’m assuming you want to use the v2 form of this, as v3 is still in beta, subject to change.
To begin (after signing up and getting your key) open the Page / HTML Markup dialog on the same page as your form. Change to the Before section of the dialog, and paste in this line:
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
Okay and close the dialog.
Inside your form, say, before the Submit button, ensure that the text cursor is flashing and choose “Insert / Markup Item” from the main menu. A dialog will appear on screen. Paste in this code, editing the placeholder here for the actual site key you received when you signed up with Google:
<div class="g-recaptcha" data-sitekey="your_site_key"></div>
Okay the dialog. You will see a little [< H >] inline in the form. That box will be replaced with the recaptcha. Make sure it’s the only thing on the same line of text, and has room to display at its full size (other elements will be displaced by it, as if it was an inline image).
That should be enough to get it working. If you need more styling help, post a link to the working form, and someone here can guide you through adding some CSS or rejigging the page.
Walter
On Jul 30, 2018, at 8:19 AM, dadooper email@hidden wrote:
Hi everyone,
I need to add the Google ReCaptcha function to a page that uses the freeway php form action but I’m a total noob at adding code lines and markup items. Is there an easy way to do this?
Thanks in advance
Marcel
freewaytalk mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk
freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options