PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

tabindex filter not working to form in widget

  1. g1n
    Member

    I put my forms on my sidebar using widgets provided by gravity form

    I realized that you should be able to modify the starting tabindex for the form using the filter below

    add_filter("gform_tabindex_2", create_function("", "return 7;"));

    However, when the form is on sidebar widget, the filter doesnt work and the form tab index always starts at 1. This gets very problematic when I want to include 2 forms in my sidebar widgets (1 for contact us and the other for newsletter subscription).

    Can someone here show me if there is anything I miss.
    Thanks in advance

    Posted 12 years ago on Friday June 3, 2011 | Permalink
  2. Hi Gln,

    We've gotten another similar report recently. Would you be able to share a login to your WP admin and FTP to allow us to take a better look at this? You can email the details to david@rocketgenius.com. Please include a link to this topic as reference.

    Posted 12 years ago on Friday June 3, 2011 | Permalink
  3. I have the same issue..

    You can see it in action here

    There's a form on the page and another tiny one in the footer. For the form in the footer I'm applying your tabindex filter like this..

    //
    //	Footer newsletter sign-up tab index filter
    //
    function deliberate_form_tabibndex( $value) {
    	return 8;
    }
    add_filter("gform_tabindex_1", 'deliberate_form_tabibndex');

    But the tabindex in that tiny footer form seems determined to begin at 1.

    Any ideas?

    Posted 11 years ago on Wednesday May 9, 2012 | Permalink
  4. On the footer form, are you placing that with a function call within your theme? You can set a tabindex on the form call itself:

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    Posted 11 years ago on Wednesday May 9, 2012 | Permalink
  5. Thanks for the reply Rob.

    I am using a widget so I went and looked at the advance options and saw I could set the tab index there. This has solved the immediate problem.

    Still, any idea why the filter didn't work?

    Cheers,

    Michael.

    Posted 11 years ago on Wednesday May 9, 2012 | Permalink
  6. David Peralty

    tabibndex should probably be tabindex. That's the only thing I can see that stands out as wrong.

    Posted 11 years ago on Wednesday May 9, 2012 | Permalink