Well the title pretty much explains the problem.
I have a InDesign document containing buttons.
One of the buttons should go back to the page the user comes from (previous page).
So I want to create a var
containing the value of the pagenumber on the button on the previous page like this:
var prevPage = this.pageNum;
Then on the button that should get the user back to where he came from add this:
this.pageNum = prevPage;
This works if I do this after the PDF is created. But since this is a time consuming hassle to do every time the client makes corrections I would like to do it in InDesign.
I know I can add an action to the button containing a menu-action "go to previous page". This literally goes through the Acrobat menu and takes you to the previous page.
The problem is that the Acrobat app doesn't have that menu. So the action can't find the menu items and won't work.
I would like to add a script to the button... but seriously wondering if this is possible. I couldn't even find a plugin that does this.
Hope the stack-brothers have a solution.