Skip to content

Commit

Permalink
gpadvs-select-on-tab.js: Added new snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
spivurno authored Nov 16, 2023
1 parent 3ba10e5 commit 5bcef32
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions gp-advanced-select/gpadvs-select-on-tab.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* 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-custom-javascript/
*/
gform.addFilter( 'gpadvs_settings', function( settings, gpadvs ) {
if ( gpadvs.formId == GFFORMID ) {
settings.selectOnTab = true;
}
return settings;
} );

0 comments on commit 5bcef32

Please sign in to comment.