Home › Forums › Quform WordPress › "Loading" step / Auto advance › Reply To: "Loading" step / Auto advance
October 10, 2019 at 1:22 pm #30061
adg_domme
Participant
I added a pre validate filter to my functions.php, like this:
add_filter('quform_pre_validate_1', function (array $result, Quform_Form $form) {
if (($nextPageId = $form->getNextPageId()) == 40) {
echo '<script>setTimeout(function() { $(\'.quform-form-1\').data(\'quform\').goToPage(40); }, 5000);</script>';
}
return $result;
}, 10, 2);
It should check what the current page ID is. If a certain page ID is met, it should automatically advance to the next page (with certain ID). However, nothing happens. 🙁