Refresh Field on Form B when Form A is Submitted

Code

Filename: gppa-refresh-field-on-another-forms-submission.js

/**
 * Gravity Perks // Populate Anything // Refresh Field on Form B when Form A is Submitted
 * https://gravitywiz.com/documentation/gravity-forms-populate-anything/
 */
jQuery( document ).on( 'gform_confirmation_loaded', function( event, formId ) {
  // Update "123" to the ID of your GPPA-enabled form. Update "4" to the field ID of your GPPA-populated field to be refreshed.
  window.gppaForms[123].bulkBatchedAjax( [ { field: 1 } ] );
} );

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.