8 Replies Latest reply on Aug 7, 2017 1:24 AM by try67

    Use Acrobat Javascript to add button field with action goto a page view

    andrewb5038015 Level 1

      I am trying to use Javascript to automatically insert buttons in a document that link to other pages within the document. In order to place the button I use this.addfield, however cant find the syntax for the setAction statement.

      So I then tried to set it to run a javascript making use of cscript with to set this.pageNum = x, however when ever I check the properties of the button the pageNum has been changed to the page the button has been placed on.

      What syntax to I need to place a button field onto a page with the selected action going to a page view. Or how do I write the javascript to use this.pageNum to another page in the pdf.