-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gppt-auto-progress-on-blur.js
: Added new snippet.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Gravity Perks // Page Transitions // Auto Progress on Blur | ||
* https://gravitywiz.com/documentation/gravity-forms-page-transitions/ | ||
* | ||
* Add support for auto-progressing to the next page on blur. Useful for enabling auto-progression | ||
* on Single Line Text and Name fields after these fields lose focus. | ||
* | ||
* Warning! This is generally considered to be a bad UX. Use at your own discretion. | ||
* | ||
* Instructions: | ||
* | ||
* 1. Install this snippet with our free Custom JavaScript plugin. | ||
* https://gravitywiz.com/gravity-forms-custom-javascript/ | ||
* | ||
* 2. Add the `gppt-auto-progress-on-blur` class to the desired fields' CSS Class Name field setting. | ||
*/ | ||
$( '.gppt-auto-progress-on-blur' ).each( function() { | ||
$( this ).find( ':input:last' ).on( 'blur', function() { | ||
$( this ).trigger( 'gpptAutoProgress' ); | ||
} ); | ||
} ); |