It looks like everything is correct. You have form 5 first then form 4 second. Tabindexes are 1 through 9 for form 5, so starting at 10 should be fine for the second form, form 4.
I inserted form 5 and 4 into this page, then used your code (but changed my tabindex to 44 since I had more fields in form 5):
add_filter("gform_tabindex_4", create_function("", "return 44;"));
Are you sure it's in the functions.php in your current theme folder?
Also, is it in an area of functions.php that will be processed (not nested inside another block of code, or a comment maybe)?
If it looks OK, please send me your functions.php via email to email@example.com and I'll see if I can figure it out.
Posted 8 years ago on Saturday September 17, 2011 | Permalink