Miva Merchant Modules and Development
Want to start an online store? We work with you from start to finish, from commerce platform to design to SEO.
Experience counts, and we have a lot.

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