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.

Multiple forms on one page cause tabindex problem

  1. I have two forms on a page, one in the post content and one in a sidebar widget. Gravity Forms is setting the tabindex of the fields sequentially (1, 2, 3) in each form. When a user hits tab from the first field of the first form, it takes them to the first field of the second form ... which is a usability nightmare for site visitors.

    I got around this by adding a PHP widget, using the shortcode, and hacking around the output ... but it should be easier than this:

    <?php
    
    $form = do_shortcode("[gravityform id=4 name=PartyClub title=false description=false ajax=true]");
    $form = str_replace("tabindex='", "tabindex='100",$form);
    echo $form;
    
    ?>
    Posted 13 years ago on Saturday September 18, 2010 | Permalink
  2. Yeah, It's much easier than that. You can use a filter to change the starting tabindex of any form. You can refer to this previous thread for details.

    http://forum.gravityhelp.com/topic/field-tab-order#post-9548

    Posted 13 years ago on Saturday September 18, 2010 | Permalink
  3. That's a little easier, but that doesn't seem like something you should have to write PHP to accomplish.

    Posted 13 years ago on Saturday September 18, 2010 | Permalink
  4. There's nothing to write, just modify the form ID if you want and drop it into your functions.php file. It's not something that's used commonly enough to warrant adding it the the admin UI. We try to keep the UI from getting too cumbersome. It's already pretty complex.

    Posted 13 years ago on Saturday September 18, 2010 | Permalink