Very necessary to separate tab index in gravity form while using multiple forms in one page. It may cause conflicts between your two or more gravity forms used in on page that usually happens like
one for header popup
one for sidebar and
one for footer
While filling a form you can disguise to another form when you press TAB button. It is not user friendly and user get annoy when this happens. This is very bad for SEO and you can loose the connect.
add_filter( ‘gform_tabindex’, ‘gform_tabindexer’, 10, 2 );
function gform_tabindexer( $tab_index, $form = false ) {
$starting_index = 1000; // initial tabindex
if( $form )
add_filter( ‘gform_tabindex_’ . $form[‘id’], ‘gform_tabindexer’ );
return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index;
}
function gform_tabindexer( $tab_index, $form = false ) {
$starting_index = 1000; // initial tabindex
if( $form )
add_filter( ‘gform_tabindex_’ . $form[‘id’], ‘gform_tabindexer’ );
return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index;
}