Gravity Forms is a great WordPress plugin to add and manage forms on your blog. While setting up multiple Gravity Form on one WordPress powered website, I had issue with tab index. Both Gravity forms had the same tabindex number and it was not working properly.
I tried to search something Gravity Forms support forums but it never allows to get any information even after providing license key. The solution turned out to be very simple after all with the little help from jQuery library.
Here’s how it works:
jQuery Method
Alternative Method using WordPress Filter (submitted by Anand below)
Open your WordPress theme functions.php file, and add the following:
add_filter(βgform_tabindex_1β², create_function(β, βreturn 5;β));
Here is the link to get Gravity Forms. Hope that helps.
Cheers!
Alternative
add_filter(‘gform_tabindex_1’, create_function(”, ‘return 5;’));
Add in function.php file
Much appreciated. I prefer this solution by far over the jquery solution – and recommend it to anyone who stumbles across this page (hopefully they’ll read the comments).
Using a filter is a FAR better solution than using jquery on the client side.
Still, Kudos to the OP for taking the time to share a possible solution π
Thanks ,
Its work… rocking!!!
sure it does. π