Miva Merchant Development by Scot's Scripts

RECAPTCHA: Use Miva Recaptcha v3 on Any Form

Miva Knowledge Base
RECAPTCHA: Use Miva Recaptcha v3 on Any Form
Important Notice: This information is for internal reference only. Use at your own risk.
Does Google actually understand your Miva Merchant store? Our JSON-LD schema generator makes sure it does. Contact us to get started. (more info)

RECAPTCHA: Use Miva Recaptcha v3 on Any Form

Scot Ranney • July 01, 2024


Requirements: Install the miva recaptcha v3 module and make sure it's all set up with the api code etc...

Step 1

Add a hidden action var to the form if it doesn't already have one.

Example:

<form method="post" action="/">

<input type="hidden" action="GET_QUOTE">

... form stuff and submit button ...

</form>

Step 2

Go to the Utility Settings tabs and find the reCAPTCHA v3 Action Configuration tab and open it and click the blue ADD ACTION button.

Step 3

Fill out the fields.

1. Miva Form Action: The value of g.action in the hidden field

2. reCAPTCHA V3 Action: Anything you want

3. Error Page: Whatever you want, not sure what the error variabl eis

4. CSS Query Selector: Some sort of CSS/JS rendition of the action variable. Pattern is the same for any form.

5. Make it active if you're ready.

6. Save.

Add Action Form for Example Above


https://www.scotsscripts.com/mvblog/recaptcha-use-miva-recaptcha-v3-on-any-form.html

mvkb_recaptcha