Tabindex problems with Gravity forms in WordPress

Sometimes there are problems with the tabindex when you use the Gravity forms plugin in WordPress. You can fix this by adding this to your theme’s functions.php file

//###############################################################################
// Fix Gravity Form Tabindex Conflicts
//###############################################################################
     add_filter("gform_tabindex", "gform_tabindexer");
     function gform_tabindexer() {
         $starting_index = 1000; // if you need a higher tabindex, update this number
         return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index;
     }

 This will set the start index from gravity forms to a higher number.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s