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
- elem Javascript Object
The div element which has the ginput_recaptcha class.
Examples
1. Basic usage
<script>
gform.addAction('gform_post_recaptcha_render', function (elem) {
// do something
});
</script>
Placement
Your code snippet can be placed in a HTML field on your form or in a theme custom JavaScript file.
Since
This hook was added in Gravity Forms 2.0.6.8.
Source Code
This hook is located in js/gravityforms.js