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.

Tab index with shortcode

  1. Hello,

    I have created two gravity forms on the homepage with shortcode.
    The tab functionality is not working correctly. From the upper form the tab jumps from the first field to the first field second form.
    I have seen in the source code that the tab index in both forms are identical.
    Is there any shortcode parameter to set the tabindex manually?

    http://sonartc.nl/wordpress/

    Posted 9 years ago on Sunday November 7, 2010 | Permalink
  2. There's not a shortcode parameter to change the tabindex. You can however change the starting tabindex using a filter and adding a small snippet to your theme's functions.php file. Here's the info.

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

    Posted 9 years ago on Sunday November 7, 2010 | Permalink
  3. Hi Kevin,

    I tried the filter and added the following code to the function.php:

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

    But no changes on the homepage, still the same tab index

    Posted 9 years ago on Sunday November 7, 2010 | Permalink
  4. Hello jawes,
    I went to your form at http://sonartc.nl/wordpress/ and the tabindexes seem to be working as they should. Let me know if I am overlooking anything.

    Posted 9 years ago on Monday November 8, 2010 | Permalink
  5. Hi Alex,

    Yes you are right it is working now!
    Thanks for checking it.

    Posted 9 years ago on Saturday November 13, 2010 | Permalink