Prioritize Next Button Over Save and Continue When Pressing Enter

Instructions

Install this snippet with our free Custom JavaScript plugin. https://gravitywiz.com/gravity-forms-code-chest/

Code

Filename: gw-prioritize-next-over-save-and-continue.js

/**
 * Gravity Wiz // Gravity Forms // Prioritize Next Button Over Save and Continue When Pressing Enter
 * https://gravitywiz.com/
 *
 * Instructions:
 *    Install this snippet with our free Custom JavaScript plugin.
 *    https://gravitywiz.com/gravity-forms-code-chest/
 */
$("#gform_GFFORMID")
	.find(".gform_save_link")
	.attr("type", "button");

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.