I’m trying to change the threshold for Google Recaptcha V3 using the snippet by Sepia River.
I found the following Github thread…
opened 07:57AM - 03 May 19 UTC
closed 02:01PM - 07 May 19 UTC
Customers of a website can't use the contact form because of an "score-threshold… -not-met" error. Is there anything we can change?
…but I can’t figure out how to implement that in the following Formit call…
&hooks=`recaptchav3,spam,FormItSaveForm,email,redirect`
&emailTpl=`flex_email_chunk`
&emailFrom=`[[$mainemail]]`
&emailTo=`[[$mainemail]]`
&redirectTo=`2`
&emailUseFieldForSubject=`1`
&validate=`nospam:blank,name:required,
email:email:required,telephone:required,consent:required,
text:required:stripTags`]]
I guess you just have to add the property &recaptchav3.threshold
as shown in the examples:
As of 3.1+, support for multiple forms in RecaptchaV3 is improved. The threshold for a passing verification score can be customized per Snippet call with the `recaptchav3.threshold` property.
```
<h2>Form Test 1</h2>
[[!FormIt?
&hooks=`recaptchav3,FormItSaveForm`
&validate=`testing1:required:minLength=^12^`
&formName=`form-test-1`
&recaptchav3.token_key=`token-1`
&recaptchav3.action_key=`action-1`
&recaptchav3.threshold=`0.9`
&submitVar=`submit1`
]]
<form action="[[~[[*id]]? &scheme=`full`]]" method="POST">
[[!+fi.error.testing1]]
<input type="text" name="testing1" value="[[!+fi.testing1]]">
<input type="submit" name="submit1" value="submit">
[[!recaptchav3_render?
&tpl=`recaptchav3_html`
&token_key=`token-1`
Ah thank you - I didn’t see that
system
Closed
December 22, 2023, 12:03pm
4
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.