Introduction
The gform.recaptcha
object provides utility methods and properties for managing reCAPTCHA integration.
Overview
Method | Parameters | Description |
---|---|---|
bindRecaptchaSubmissionEvents() | None | Binds event listeners for reCAPTCHA-related form submission actions. |
executeRecaptcha() | Object|Object | Asynchronously executes the reCAPTCHA challenge for validation. |
gformIsRecaptchaPending() | Object | Checks if a reCAPTCHA verification is pending for a form. |
handleAjaxPostSubmission() | Object | Processes reCAPTCHA responses during AJAX form submissions. |
handleAjaxPostValidation() | Object | Validates reCAPTCHA responses during AJAX form validation. |
isSubmissionEventsInitialized | None | Indicates whether reCAPTCHA submission events are initialized (false by default). |
maybeExecuteInvisibleRecaptcha() | Object | Asynchronously triggers invisible reCAPTCHA if applicable. |
needsRender() | None | Determines if the reCAPTCHA widget needs to be rendered. |
renderOnRecaptchaLoaded() | None | Renders the reCAPTCHA widget once the reCAPTCHA API is loaded. |
renderRecaptcha() | None | Renders the reCAPTCHA widget in the form. |
saveRecaptchaResponse() | String|Object | Saves the reCAPTCHA response for form submission. |