Gravity Fotms is the most flexible form building WordPress plugin out there and has tons of features. However, sometimes , it’s tab index interferes with theme/ wordPress tab index which means visitors will face issues while navigating to next form fields using Tab button. A fairly simple solution will help you overcome this common problem. Open your active theme’s functions.php and add the following lines at end.
* Fix Gravity Forms Tab index Conflicts
*/
add_filter( 'gform_tabindex', 'gravityform_tindexer', 10, 2 );
function gravityform_tindexer( $tab_index, $form = false ) {
$starting_index = 5000; // if you need a higher tab index, increase this number
if( $form )
add_filter( 'gform_tabindex_' . $form['id'], 'gravityform_tindexer' );
return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index;
}
How did it work for you? Let me know your comments below.