Skip to main content
Participant
August 30, 2016
Answered

how do I use a drop down menu to link internally

  • August 30, 2016
  • 1 reply
  • 1109 views

I'm using Acrobat Pro DC. I want to use a drop down menu to link internally in my PDF document. I think its possible and the solution is probably with JavaScript. I am very new to JS. I have the drop down created via forms, but nothing I add into the preferences in JS is doing the trick. Any help would be greatly appreciated.

Thank you

This topic has been closed for replies.
Correct answer try67

OK. So first tick the box that says "Commit the selected value immediately" under the drop-down's Properties, Options tab, and then enter this code as its custom validation script:

if (event.value=="A") this.pageNum = 1; // Go to page 2

if (event.value=="B") this.pageNum = 4; // Go to page 5, etc.

Adjust the values and page numbers, as required.

1 reply

try67
Community Expert
Community Expert
August 30, 2016

Do you mean something like "if item A is selected, go to page 2; if item B is selected go to page 5; etc."?

Participant
August 30, 2016

Yes exactly

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
August 30, 2016

OK. So first tick the box that says "Commit the selected value immediately" under the drop-down's Properties, Options tab, and then enter this code as its custom validation script:

if (event.value=="A") this.pageNum = 1; // Go to page 2

if (event.value=="B") this.pageNum = 4; // Go to page 5, etc.

Adjust the values and page numbers, as required.