Skip to main content
KarineP
Participating Frequently
July 10, 2020
Question

Dynamic dropdown list using javascript for multiple times in same document

  • July 10, 2020
  • 1 reply
  • 4188 views

Hey all, I am trying to create a dynamic dropdown list in Acrobat. I was able to find many resources online using a javascript and happily got it to work! Unfortunately, I need to use the same dynamic drop down 8 times in the same form (you can select up to 8 answers off of the same extensive list). I thought I could just rename the fields and duplicate the script but it doesn't seem to work that way and each new field just replaces the same answer box). Can you please help! I assume it will take come coding knowledge which I do not posess! thanks in advance, below is a screenshot of the forms so it makes more sense and attached is the script since it is so long- it is the exact same info twice with the field changed to #2 but it didn't work for me

 

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
July 10, 2020

You must also change the field names in the script.

KarineP
KarinePAuthor
Participating Frequently
July 11, 2020

so do you mean I can't have the same field names 8 times and have them be chosen independently of each other? I guess a work around could be to add a numberal number in front of each set matching the question number?

Bernd Alheit
Community Expert
Community Expert
July 11, 2020

I mean the names of the fields with the answer box.