Select on Tab

Select the currently focused item from the Advanced Select menu when pressing the tab button.

Instructions

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

Code

Filename: gpadvs-select-on-tab.js

/**
 * Gravity Perks // Advanced Select // Select on Tab
 * https://gravitywiz.com/documentation/gravity-forms-advanced-select/
 *
 * Select the currently focused item from the Advanced Select menu when pressing the tab button.
 *
 * Instructions:
 *
 * 1. Install this snippet with our free Custom JavaScript plugin.
 *    https://gravitywiz.com/gravity-forms-code-chest/
 */
gform.addFilter( 'gpadvs_settings', function( settings, gpadvs ) {
	if ( gpadvs.formId == GFFORMID ) {
		settings.selectOnTab = true;
	}
	return settings;
} );

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.