Skip to main content
wendibee
Participant
November 29, 2017
Question

Populate a drop down list with field values - Acrobat DC Pro

  • November 29, 2017
  • 1 reply
  • 1573 views

I've searched for hours with no luck. I'm creating a form in Acrobat DC. It's a business plan. I have one page where the user types in a list of 10 values. This is free form type. They have 10 fields to fill in. The next page is where they need to Rank their Values. So I wanted 10 fields with a dropdown in each. In the dropdown I wanted the values from the List Values sheet to populate in the dropdown. They can choose the one they Rank as #1, then go to the 2nd dropdown and that option disappears and they can choose the next option as their #2 Value, and so on and so forth. Is anyone able to help me with the javascript needed to make this happen and also where to put the javascript, i.e. is it under Actions, Format, Validate or Calculate? Thanks in advance. This to me seemed like a simple request but every search comes up with something slightly different than what I'm looking to do.

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
November 29, 2017

These two tutorials will help

https://acrobatusers.com/tutorials/js_list_combo_livecycle

https://acrobatusers.com/tutorials/list_and_combo_in_lc

You're setup sounds complicated, not simple. You need to parse values from a free form text entry, then populate 10 lists with the parsed entries.  Then modify each list as selections are made.

You are never going to find exactly this solution. You will find bits and pieces that fill in different parts. In fact, most of what you need you will find in the tutorials linked above.

I recently answered a question on the Acrobat JavaScript forum from someone who wanted entries to be removed from a list on selection just as you've described, so you'll find another part of the solution there.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often