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

How to Create a Color-Coded Dropdown Menu in Interactive PDF Using InDesign

New Here ,
Nov 05, 2024 Nov 05, 2024

Hello.

 

I am attempting to generate an interactive PDF in InDesign that would have drop down menus with three (3) values; 1, 2 and 3. The numbers would each have an assigned color to them, ie 1 = yellow, 2 = orange and 3 = red. So when the user selected the number two from the drop down menu, it would display yellow but it a number 3 was selected, it would display as red. Is this possible?

 

 

<Title renamed by MOD>

TOPICS
How to , Scripting , Type
701
Translate
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 ,
Nov 05, 2024 Nov 05, 2024

This is possible, but you can only do it with Acrobat Pro using JavaScript, bearing in mind that the numbers will only change colour once they have been selected.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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 ,
Nov 05, 2024 Nov 05, 2024

I am truly hoping this is indeed possible. I used chatGPT to see if there was a way to achieve my desired outcome. It was somewhat in line with what you were saying. It generated the javascript code, I followed the steps by opening the PDF in Acrobat Pro, pasted the javascript, modified it to match my parameters and still no luck. 
Have you been able to achieve something like this in an interactive PDF?

Translate
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 ,
Nov 07, 2024 Nov 07, 2024

Please share your PDF and the ChatGPT script. I don't have the time to create one from scratch.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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 ,
Nov 07, 2024 Nov 07, 2024

Wow. I am sincerely grateful for you willing to take a crack at this!

Translate
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 ,
Nov 08, 2024 Nov 08, 2024
LATEST

The script is in the "Format" tab.

I've also turned the background grey, because otherwise the yellow (1) is almost invisible.

 


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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