gform.recaptcha

Introduction

The gform.recaptcha object provides utility methods and properties for managing reCAPTCHA integration.

Overview

MethodParametersDescription
bindRecaptchaSubmissionEvents()NoneBinds event listeners for reCAPTCHA-related form submission actions.
executeRecaptcha()Object|ObjectAsynchronously executes the reCAPTCHA challenge for validation.
gformIsRecaptchaPending()ObjectChecks if a reCAPTCHA verification is pending for a form.
handleAjaxPostSubmission()ObjectProcesses reCAPTCHA responses during AJAX form submissions.
handleAjaxPostValidation()ObjectValidates reCAPTCHA responses during AJAX form validation.
isSubmissionEventsInitializedNoneIndicates whether reCAPTCHA submission events are initialized (false by default).
maybeExecuteInvisibleRecaptcha()ObjectAsynchronously triggers invisible reCAPTCHA if applicable.
needsRender()NoneDetermines if the reCAPTCHA widget needs to be rendered.
renderOnRecaptchaLoaded()NoneRenders the reCAPTCHA widget once the reCAPTCHA API is loaded.
renderRecaptcha()NoneRenders the reCAPTCHA widget in the form.
saveRecaptchaResponse()String|ObjectSaves the reCAPTCHA response for form submission.