Update: Sorry not to add this sooner, but Graivty Forms now makes it even easier to solve the tabbing problem. Now when you use the form icon to insert a form into a page or post, simply click on the Advanced Options link to expand it and you will see a place to insert your tab index. Use any number you want as long as you haven’t used it before.
Orignial post from March 28, 2014:
I’ve spoken to a few people who have had problems with Gravity Forms tabbing to another form on the page. If you’re having that problem, Gavity Wiz has a great fix. Here’s the code to add to your functions.php file:
/** * Fix Gravity Form Tabindex Conflicts * http://gravitywiz.com/fix-gravity-form-tabindex-conflicts/ */ add_filter( ‘gform_tabindex’, ‘gform_tabindexer’, 10, 2 ); function gform_tabindexer( $tab_index, $form = false ) { $starting_index = 1000; // if you need a higher tabindex, update this number if( $form ) add_filter( ‘gform_tabindex_’ . $form[‘id’], ‘gform_tabindexer’ ); return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index; }
Read the full article here: http://gravitywiz.com/fix-gravity-form-tabindex-conflicts/
If you just have one or two forms and you don’t want to mess with your functions.php file, you can add tabindex=”40″ to your shortcode like this:
Darrin says
Thanks for this tip. I have one issue that’s been plaguing me for months.
Do you know how to Hide the Street field an Zip/Postal Code when using the Advanced Fields: Address Field?
In the Address Field, we’re able to: 1.) Hide Country Field, 2.) Hide State/Province/Region and 3.) Hide Address line 2.
However, what if we need to only show:
a. City
b. State/Province/Region
c. Country
The address feature is specifically functional for the automatic dropdown of the countries. But it’s not flexible enough to show “Country Dropdown” plus other individual Address field items.
Laura Hartwig says
Hi Darrin,
Great question! Gravity Forms makes it easy to do that. Instead of using the address option to add those things all together into your form, use separate fields. For City, use the Single Line Text option. For states & country, use the drop down field. Once you select it, go in like you are going to edit it, but under the drop down choices you will see “Bulk Add/Predefined Choices”. Simply choose the predefined Country or States choice. If you want to add a different option for more than US States, you can simply copy and paste the selection from the states option and create your own option and add an “other” option. Then you could use conditional logic to show a Single Line Text option if they choose other. Let me know if this is not clear and I’ll create a short tutorial. Good luck1
Mary says
Thanks Laura. Two and half years later and your shortcode worked perfectly.
Laura Hartwig says
Sorry not to add this sooner, but Graivty Forms now makes it even easier to solve the tabbing problem. Now when you use the form icon to insert a form into a page or post, simply click on the Advanced Options link to expand it and you will see a place to insert your tab index. Use any number you want as long as you haven’t used it before.