Reply To: "Loading" step / Auto advance

Home Forums Quform WordPress "Loading" step / Auto advance Reply To: "Loading" step / Auto advance

#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. 🙁

  • This reply was modified 1 week, 3 days ago by  adg_domme.
  • This reply was modified 1 week, 3 days ago by  adg_domme.
Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy