Skip to content

Instantly share code, notes, and snippets.

@chrisegg
Created November 20, 2021 19:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chrisegg/0b721cb11825343d9cc5ee810299c6c7 to your computer and use it in GitHub Desktop.
This snippet will support auto advancing pages in multi-page form for radio button and drop down field types. Full tutorial here: https://gravityranger.com/how-to-build-a-conversational-form-in-gravity-forms
<script>
jQuery(document).ready(function($) {
$('input[type=radio], select').on('change', function() {
$(this).closest("form").submit();
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment