Instant Reload

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/

Code

Filename: gprf-instant-reload.js

/**
 * 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();
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.