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.

Form Tab Index Issue

  1. I was having problems tabbing through my new form. I found this post, which led me in the right direction:

    The tabbing problem was not another form in a widget, however. The WordPress Admin bar also uses tabindex, apparently for reasons of accessibility. Here is the reference link:

    To me, rather than asking users of your software to change the tabindex of all other forms in use at their sites, I think it would be more appropriate for Gravity Forms to allow us to define a tabindex for the fields in our forms, especially since I've learned tonight that the conflict is in a tabindex set on a core feature of WordPress itself. I had to chase a lot of code around to remedy the issue and this seems unnecessary. If I had created a form from scratch, I could have easily declared the tabindex of the form fields to begin AFTER the tabindex of the core WordPress Admin Bar.

    What are your thoughts on this?

    Posted 10 years ago on Saturday November 10, 2012 | Permalink
  2. You can set the tabindex for each Gravity Form by setting it in the shortcode when you embed the form, in the widget settings (if you're using a widget) or by using the gform_tabindex filter for one form, or apply it to all forms.

    Posted 10 years ago on Monday November 12, 2012 | Permalink
  3. Thank you for your reply. I could swear that I searched this forum for all content relating to tabindex and that documentation link was not among the returned results.

    I'll go back and rework my code and add the function to begin the tabindex beyond the tabindex of the wp admin bar. That is cleaner.

    Just a suggestion. Maybe that could be incorporated into the form settings in the future. I spent way too much time researching and coding a solution, it seems.

    Posted 10 years ago on Thursday November 15, 2012 | Permalink
  4. Sorry for the inconvenience. We'll take your suggestions to heart.

    Posted 10 years ago on Saturday November 17, 2012 | Permalink

This topic has been resolved and has been closed to new replies.