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
seems to return a value of 2 on a different test form
Seems to work on my actual form.
Am I doing it wrong?
Seems to have something to do with either hidden pages, or page groups in my actual form.
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.
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
Form.goToPage(Form.$Pages.index + 2)