• Resolved kimbedi

    (@kimbedi)


    How can I add an onclick event to a button that when clicked takes the user to a field on another page of the form

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello,

    The plugin does not include the option for jumping to other pages than next and previous, because pressing the “Next page” button, the plugin validates the fields in the current page, and if the any of validation rules fails, the user cannot move on to the next page.

    However, assuming you are in the first page, and you want go to the third page, and there are no required fields in the second one, you simply should trigger the onclick event of the “Next page” button of the second page. So, you simply should enter as the onclick event in the button field the piece of code:

    jQuery('.pbNext:eq(1)').click();

    Note that the index is 1, because it starts in zero. The index corresponding to the first “Next page” button is 0, for the second “Next page” button (the corresponding to the second page) is 1, and so on.

    Best regards.

    Thread Starter kimbedi

    (@kimbedi)

    many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘OnClick to button’ is closed to new replies.