Hi dustundag,
If you want jump to the page 5, you should call the snippet of code:
jQuery( '.pbNext' )[3].click();
The number of elements start in zero, so, the previous code is triggering the click event of fourth “Next” button, to display the fifth page.
As you know now the code that allows jump to different pages in the form, simply should use it in the logic of your project.
Best regards.
Hi
i belive It is not possible to use the snippet of code direcly with radio buttons but requires “button” or “calculated fields”, or Html content ?
Hi,
The use of the previous piece of code will depend of your form’s logic, there is not an unique mode to use it. You can include it as the onclick event of a button, or as part of an equation associated to a calculated field.
If you are needing additional help with the project, I can offer you a custom coding service through my private support page:
http://cff.dwbooster.com/customization
Best regards.
I did tried to use jQuery( ‘.pbNext’ )[3].click();
Basically it did work at start, but due to multipage at somewhere it was
by passing the first page . so instead, i have used the followings successfully after following similar posts
First Page
After Radio Button with value selection 1 and 2
if(fieldname216==”1″) jQuery(‘div.pbNext:eq(0)’).click();
else jQuery(‘div.pbNext:eq(0)’).hide();
if(fieldname216==”2″) jQuery(‘div.pbNext:eq(1)’).click();
else jQuery(‘div.pbNext:eq(1)’).hide();
Third Page
After Radio Button with value selection 1 and 2
if(fieldname217==”1″) jQuery(‘div.pbNext:eq(2)’).click();
else jQuery(‘div.pbNext:eq(2)’).hide();
if(fieldname217==”2″) jQuery(‘div.pbNext:eq(4)’).click();
else jQuery(‘div.pbNext:eq(4)’).hide();
Hi,
In reality my recommendation would be emulate the “Next” and “Previous” buttons, with common buttons (and hide the next and previous buttons with css), using a calculated field as auxiliary field to identify the new page (create a javascript variable with global scope, from the equations, and check its value from the onclick events of buttons to emulate the “Next” and “Previous” buttons).
The required code is specific to your project, and there is not an unique way to do it.
Best regards.