Recaptcha3Token plugin

Send the Google reCAPTCHA v3 token to the back-end when the form is valid
Use the Recaptcha3 plugin if you want to verify the Google reCAPTCHA v3 token


To use it, you need to register a site and secret keys at reCaptcha admin page.
The following piece of code is the starting point to use the Recaptcha3Token plugin:
<link rel="stylesheet" href="/vendors/formvalidation/dist/css/formValidation.min.css" />
<form id="demoForm" method="POST">...</form>
<script src=""></script>
<script src="/vendors/formvalidation/dist/js/FormValidation.min.js"></script>
<script src="/vendors/formvalidation/dist/js/plugins/Recaptcha3Token.min.js"></script>
document.addEventListener('DOMContentLoaded', function(e) {
fields: {
plugins: {
recaptcha3Token: new FormValidation.plugins.Recaptcha3Token({
action: ...,
hiddenTokenName: ...,
language: ...,
siteKey: ...,
The sample code above assumes that the FormValidation files are placed inside the vendors directory. You might need to change the path depending on where you place them on the server.


(* denotes a required parameter)
action *StringThe page action
hiddenTokenName *StringThe name of hidden token input generated by Google reCAPTCHA v3
languageStringThe language code defined by reCAPTCHA
siteKey *StringThe site key provided by Google


  • First release. It means that the Recaptcha3Token plugin requires FormValidation v1.7.0 or newer