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

Dropdown menu background color change

New Here ,
Nov 11, 2019 Nov 11, 2019

Hello,

I'm a total rookie with Adobe Pro and I'm trying to figure out how to add javascript to my fillable pdf form.  More specifically, I have about 100 dropdown menus each with the same items to select: "1", "2", "3" and "4".  

I hoping there's a way to incorporate javascript to  each dropdown menu that would change the background color depending on which item is selected.  i.e

If "1" then background to red

If "2" then background to yellow

If "3" then background unchanged or white

If "4" then background to green

 

Is there an easy way to do this?

 

Thank you!

TOPICS
Acrobat SDK and JavaScript
3.0K
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

correct answers 1 Correct answer

Community Expert , Nov 11, 2019 Nov 11, 2019
Translate
Community Expert ,
Nov 11, 2019 Nov 11, 2019
LATEST
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