Auto-focus to the next input field after completing one (including skipping radio groups)

Hi everyone,

I’m trying to improve the user experience in one of my Gravity Forms by automatically moving the focus to the next input field once the user completes one — for example, when pressing Enter, Tab, or after selecting a radio or dropdown option.

I want it to work universally for any Gravity Form, without depending on specific field IDs, and ideally skip over radio groups (only focusing the first radio in each group).

I’ve tried adding a custom JavaScript snippet that loops through focusable elements, but it doesn’t seem to work properly inside Gravity Forms, possibly because of how GF loads its DOM or because some inputs are inside wrappers.

I also noticed Gravity Forms might have an autofocus-related plugin or hook, but I haven’t found a working example that does this kind of dynamic focus navigation.

Has anyone implemented something similar or knows of a plugin, hook, or snippet that can:

  • Automatically move focus to the next visible input,

  • Skip through grouped radio buttons,

  • Work across multi-page or conditional forms?

Any help or direction would be greatly appreciated!

Thanks,
David

I feel like the Conversational Forms add-on does this to some degree:

Our GP Page Transitions plugin also supports auto-progression but it is specific to auto-submitting the form when the last page is complete.

My gut is that allowing users to navigate between fields on the same page with their keyboard/mouse might be ideal? But curious if there’s a real world example you like?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.