multi step form without click the next button
-
Hello,
I need to change my forminator form, so that when a user answers a question (radio-button), it will automatically go to the next page. So without a ”next step” button.
I found similar topic about it:?
https://www.ads-software.com/support/topic/radio-button-auto-next-pagination/
https://www.ads-software.com/support/topic/multi-step-form-without-click-the-next-button-2/
I have used the following code:<?php add_action( 'wp_footer', 'formi_next', 99 ); function formi_next() { ?> <script> (function($) { $(document).ready(function() { setTimeout(function() { $('.forminator-custom-form').trigger('after.load.forminator'); }, 100); $(document).on('after.load.forminator', function(e, form_id) { let clickable_elements = $('.next-on-click input[type="radio"]'); $(clickable_elements).click(function(){ if( this.checked ) { $('.forminator-button-next').click(); } }); }); }); })(jQuery); </script> <?php }
also added css class next-on-click on each radio buttons and turned on AJAX loading. Still it doesn’t work.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘multi step form without click the next button’ is closed to new replies.