Skip to content

Commit

Permalink
gprf-instant-reload.js: Added new snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
spivurno committed Sep 13, 2024
1 parent 71e486e commit 21f3f3a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gp-reload-form/gprf-instant-reload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Gravity Perks // Reload Form // Instant Reload
* https://gravitywiz.com/documentation/gravity-forms-reload-form/
*
* Instantly reload the form without any delay as soon as the confirmation is rendered.
*
* Instructions:
*
* 1. Install this snippet with our free Custom JavaScript plugin.
* https://gravitywiz.com/gravity-forms-custom-javascript/
*/
$( document ).bind( 'gform_confirmation_loaded', function( event, formId ) {
$( '#gform_confirmation_wrapper_GFFORMID' ).parent().data( 'gwrf_GFFORMID' ).reloadForm();
} );

0 comments on commit 21f3f3a

Please sign in to comment.