Skip to content

Commit 21f3f3a

Browse files
authored
gprf-instant-reload.js: Added new snippet.
1 parent 71e486e commit 21f3f3a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Gravity Perks // Reload Form // Instant Reload
3+
* https://gravitywiz.com/documentation/gravity-forms-reload-form/
4+
*
5+
* Instantly reload the form without any delay as soon as the confirmation is rendered.
6+
*
7+
* Instructions:
8+
*
9+
* 1. Install this snippet with our free Custom JavaScript plugin.
10+
* https://gravitywiz.com/gravity-forms-custom-javascript/
11+
*/
12+
$( document ).bind( 'gform_confirmation_loaded', function( event, formId ) {
13+
$( '#gform_confirmation_wrapper_GFFORMID' ).parent().data( 'gwrf_GFFORMID' ).reloadForm();
14+
} );

0 commit comments

Comments
 (0)