Thread Starter
Johnny
(@johnny18sg)
I received an error “ERROR for site owner: Invalid key type” when I view the form.
I am still quite confused about how to get it working. These are the steps I did:
1. Enter the reCAPTCHA site and secret keys in the setting page.
2. Created a reCAPTCHA field type in field group.
3. Turn on ACF reCAPTCHA Protection at the bottom. But when I update it, ACF reCAPTCHA Protection returns to off.
Is that all I need to do?
I read somewhere that “Field group ID or key has to be explicitly specified in acf_form($args)”. How do I do it? Can you give an example. I am totally lost.
Thank you,
Johnny
@johnny18sg have you found a solution yet for this? I have the exact same issue.
Thread Starter
Johnny
(@johnny18sg)
No solution.
It only works on version 2. So I have to use version 2 instead.
Even I am looking for same as @johnny18sg
I am usung recaptcha v2
Does your V2 checkbox version work @johnny18sg ?
Mine does not, I actually have the V2 checkbox one since I expected the plugin not to support V3.
I does work with the demo keys (third question here: https://developers.google.com/recaptcha/docs/faq) So that’s weird to me.
Do you have any clue on what I’m missing here?
Thread Starter
Johnny
(@johnny18sg)
Hi,
Sorry for late reply.
Yes v2 works for me. You may want to include this in your page template:
‘recaptcha’ => true,
For example:
<?php
acf_form(array(
‘post_id’ => ‘new_post’,
‘post_title’ => true,
‘post_content’ => true,
‘recaptcha’ => true,
‘label_placement’ => ‘left’,
‘instruction_placement’ => ‘field’,
‘submit_value’ => __(“Submit”, ‘acf’),
‘updated_message’ => __(“Report submitted for review. Thank you!”, ‘acf’),
‘new_post’ => array(
‘post_type’ => ‘your-post-type’,
‘post_status’ => ‘publish’
)
));
?>