multi step form without click the next button
-
I am looking for a possibility to go through a multistep form without klick on the next button, but when a selection is made (for the steps with radios, and one option.
For that I found this 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 }Which I added like this:
1. created an empty file with a php extension (e.g. “forminator-click-next.php”)
2. copy and paste this code into it.But nothing happens…
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘multi step form without click the next button’ is closed to new replies.