Description
The gform_post_recaptcha_render JavaScript hook can be used to perform custom actions once the reCAPTCHA widget has been rendered.
Usage
gform.addAction( 'gform_post_recaptcha_render', function( elem ) {
// do something
} );
Parameters
| Parameter | Type | Description |
|---|---|---|
elem | Javascript Object | The div element which has the ginput_recaptcha class. |
Examples
1. Basic usage
gform.addAction( 'gform_post_recaptcha_render', function( elem ) {
// do something
} );
Placement
Reference the article Adding JavaScript Code to the Frontend of Your Site.
Since
This hook was added in Gravity Forms 2.0.6.8.
Source Code
This hook is located in js/gravityforms.js