1
0
-1

I'm trying to progress to the next page with a button and a script:

Form.goToPage(Form.getCurrentPageNumber() +1 )

... but nothing happens when I execute it

Form.getCurrentPageNumber() +1

seems to return a value of 2 on a different test form

Form.goToPage(6)

Seems to work on my actual form.

Am I doing it wrong?

 

  1. Sacha Trube

    Seems to have something to do with either hidden pages, or page groups in my actual form.

  2. Sacha Trube

    Form.getCurrentPageNumber() is not actually reporting back the actual current page. For example, it returns 12, but I need to use 14 to get to the next page.

CommentAdd your comment...

1 answer

  1.  
    2
    1
    0

    You can move to the next page just by using this method. true or forward and false for back.

     

    If you want to use the goToPage method you could use the current page index + 2

    So: 

      CommentAdd your comment...