Remove Tabindex From Gravity Forms Fields
Stops Gravity Forms adding tabindex numbers to fields, which can make keyboard users jump around the page in the wrong order, especially with several forms on one page.
Opens WPIDE on
Code
add_filter( 'gform_tabindex', '__return_false' );
Notes
Fields then follow the natural document order, which is what screen reader and keyboard users expect.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.