This is a JavaScript hook called when navigation between pages in the form.
1 2 3 4 5 | jQuery(function ($) { $('.quform-form-1').on('quform:goToPageStart', function (e, form, $page, id, targetPageIndex) { // Custom code }); }); |
jQuery(function ($) { $('.quform-form-1').on('quform:goToPageStart', function (e, form, $page, id, targetPageIndex) { // Custom code }); });
- On line 2, replace the number
1
with the form ID
Arguments
Argument | Description |
---|---|
e | The event data |
form | The Quform instance |
$page | The jQuery object of the newly visible page |
id | The ID of the newly visible page |
targetPageIndex | The index of the newly visible page, within the list of pages |