Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- /*
- * Tutorial available: https://youtu.be/J427qobk8MI
- * Watch the entire Webflow forms masterclass: https://www.youtube.com/playlist?list=PLlufJ1b4uSqUFaSJoV2m4v3VdPB91m5Hs
- */
- // get your form element
- const $form = $('[data-your-form-element]');
- if ($form.length) {
- $form.on('submit', function() {
- // Get the recaptcha response of the currently submitted form
- const recaptchaResponse = $(this).find('.g-recaptcha-response').val();
- if (recaptchaResponse.length) {
- // do the thing you want to do
- }
- });
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement