• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

How to make a dropdown menu option navigate to a different page in the PDF

New Here ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

I would like to know to make a dropdown menu option navigate to a different page in the PDF. I am not proficient in JavaScript and I am not even sure if that is what I would need to use. I cannot find anything on it...

TOPICS
How to

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 12, 2022 Dec 12, 2022

You can do it like this ( as validation script of dropdown field):

if(event.value == "Choice1") this.pageNum = 1;
else if(event.value == "Choice2") this.pageNum = 3;

 

Just keep in mind pages starts with 0, so you always need to set one number lower, for example to go to page 5 set it to 4.

Votes

Translate

Translate
Community Expert ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

You can do it like this ( as validation script of dropdown field):

if(event.value == "Choice1") this.pageNum = 1;
else if(event.value == "Choice2") this.pageNum = 3;

 

Just keep in mind pages starts with 0, so you always need to set one number lower, for example to go to page 5 set it to 4.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 26, 2023 Feb 26, 2023

Copy link to clipboard

Copied

Hi, I was Trying to achieve the exact same but wasnt able. 

I have about 5 items on my dropdown list. WIll the code be the same the first being "if" and remaining 4 being "else if".

 

I was trying I doesnt seem to work on my end? Do I add the code in validate ? Do i need to add anything in the actions tab? Super Thankful. 

 

Best AR

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2023 Feb 26, 2023

Copy link to clipboard

Copied

LATEST

Can you post the script you tried?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines