#1 April 17, 2018 1:33pm

cdscholz
Member
Registered: February 26, 2018
Posts: 2

ReCAPTCHA not appearing on forms

We're working on our dev environtment to get reCAPTCHA set up. I've put the keys in the settings, confirmed they're stored in the DB. Added the js call in the head tag. The widget appears in the Form Builder but when dropped on a test form, this is what shows in the code and nothing appears on screen:

<fieldset>
        <label>
        Spam Prevention        <span class="form_builder_required_star">*</span>
    </label>
        <p>Please help us prevent spam by using the reCAPTCHA below.</p>
        <div class="g-recaptcha" data-sitekey=""></div>
</fieldset>

Offline

#2 April 17, 2018 2:26pm

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Re: ReCAPTCHA not appearing on forms

Hello,

I was having the same problem and what Tim recommended(https://www.bigtreecms.org/forum/viewtopic.php?id=580) fixed the issue for me.

Modify this line (in _header.php in the template):

$settings = $cms->getSetting("settings");
to
$settings = $cms->getSetting("com.fastspot.form-builder*settings");

My _header.php file was located in extensions/com.fastspot.form-builder/templates/routed/btx-form-builder/

Hope this helps.

Last edited by doon.mok (April 17, 2018 2:29pm)

Offline

#3 April 18, 2018 9:57am

mke18
Member
Registered: April 18, 2018
Posts: 28

Re: ReCAPTCHA not appearing on forms

Hi,

The problem here is why this: data-sitekey="" doesn't show the sitekey, even after modifying the code. I there a way to force it or just to have a wysiwig form element that you can put below the reCapthca?

Offline

#4 April 18, 2018 10:08am

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Re: ReCAPTCHA not appearing on forms

Are you using the out of the box form builder or do you have a custom form builder?

My folder structure for the form builder
Out of box folder: \extensions\com.fastspot.form-builder\templates\routed\btx-form-builder\
Custom folder: \templates\routed\btx-form-builder

Offline

#5 April 18, 2018 11:52am

mke18
Member
Registered: April 18, 2018
Posts: 28

Re: ReCAPTCHA not appearing on forms

I'm using Out the box folder.

Offline

#6 April 18, 2018 12:13pm

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Re: ReCAPTCHA not appearing on forms

Can you confirm you added the site key and secret Key under Modules > Form Builder > Settings ?

Offline

#7 April 18, 2018 12:24pm

mke18
Member
Registered: April 18, 2018
Posts: 28

Re: ReCAPTCHA not appearing on forms

Yes, I did!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.