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

Add multiple items to a drop down box

Guest
Oct 01, 2015 Oct 01, 2015

Copy link to clipboard

Copied

Hi all

Using Adobe Acrobat Pro DC Version 2015.008

I have just started preparing a fill in form. This will be my first one. I need to add a drop down box for selecting customers. The person filling in the form would click on the field and it would show them a list of customers. There are around 100 customers. Ideally they should be able to start typing in some letters and drop down.

Is it possible to add all customers at once to the drop down box? I can only see to add one at a time.

Any assistance with this would be greatly appreciated.

Regards

Vera Hawkins

TOPICS
PDF forms

Views

41.4K

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

LEGEND , Oct 02, 2015 Oct 02, 2015

You download and use the following demo PDF to speed up the process: http://acroscript.net/pdf/demos/comboPopulateTest.pdf

The idea is that you copy & paste or manually enter a list of items (each line is a separate item) into the large yellow multiline field, press the "Populate combo box" button, and then copy & paste the drop down field to your form. You'd then resize the field and set the other field properties to suit. Post again if you need help with it.

If you think you'll need to do this a

...

Votes

Translate

Translate
LEGEND ,
Oct 02, 2015 Oct 02, 2015

Copy link to clipboard

Copied

You download and use the following demo PDF to speed up the process: http://acroscript.net/pdf/demos/comboPopulateTest.pdf

The idea is that you copy & paste or manually enter a list of items (each line is a separate item) into the large yellow multiline field, press the "Populate combo box" button, and then copy & paste the drop down field to your form. You'd then resize the field and set the other field properties to suit. Post again if you need help with it.

If you think you'll need to do this a lot, I've developed a utility that acts like a plug-in to Acrobat that makes this process much simpler and faster than the native Acrobat interface. You can send me a message through the forum for more info.

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
Guest
Oct 06, 2015 Oct 06, 2015

Copy link to clipboard

Copied

Thanks for that. I tried it but could not copy the filled box. It opens in acroscript.net and runs okay but I find it very hard to select the combo box. I did it once but had to update it and now it will only paste what I previously copied. Tried selecting it but it still does not copy.

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
LEGEND ,
Oct 06, 2015 Oct 06, 2015

Copy link to clipboard

Copied

You need to download the PDF and open it directly in Acrobat. Once you've pasted the list items in the large multiline field and press the "Populate combo box" button, you can go into form edting mode (Tools > Prepare Form) and copy the dropdown (combo box). You should then be able to switch to your form and paste the dropdown into your form.

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
Guest
Oct 06, 2015 Oct 06, 2015

Copy link to clipboard

Copied

Thanks heaps. That worked.

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 ,
Jun 05, 2018 Jun 05, 2018

Copy link to clipboard

Copied

This demo PDF works great, but unfortunately it won't let me select No Color for the form field border. Do you still have the utility on hand?

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 ,
Oct 02, 2015 Oct 02, 2015

Copy link to clipboard

Copied

You can't do it directly, but if you have the list in a spreadsheet, or even a Word file, then it can be imported into the drop-down field using a script, like this one I've developed: Custom-made Adobe Scripts: Acrobat -- Import Items from a Text File to a Combo-Box or List Field

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
Guest
Oct 05, 2015 Oct 05, 2015

Copy link to clipboard

Copied

Thanks for the help. I will check out the script. Thought not sure how to run it. Ha Ha!!

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
Participant ,
Jun 06, 2017 Jun 06, 2017

Copy link to clipboard

Copied

Excellent, you really solved my problem, it makes life so much easier.
Thank you very much for the help.

Regards,

Berg

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 Beginner ,
Sep 13, 2017 Sep 13, 2017

Copy link to clipboard

Copied

To expand on this, is it possible to also define export values for each of the choices?   I will be creating a drop down with somewhere around 500 choices and they each have a corresponding lookup code that will need to be used when exported.

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
LEGEND ,
Sep 13, 2017 Sep 13, 2017

Copy link to clipboard

Copied

It's possible and easiest to do with the utility I mentioned earlier.

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 ,
Apr 17, 2020 Apr 17, 2020

Copy link to clipboard

Copied

I got the script, pasted in the list, hit populate combo box then copied it into my form in a new drop down box.  It only copies the first line.  Help

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 ,
Apr 17, 2020 Apr 17, 2020

Copy link to clipboard

Copied

Try the "Fill List" Demo here:

https://www.pdfscripting.com/public/Free-Sample-PDF-Files-with-scripts.cfm

 

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

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 ,
Jun 05, 2020 Jun 05, 2020

Copy link to clipboard

Copied

Hello George, after searching countless sites, you have already produced what I was looking for. The project I was working on required a combo box to populated by quite a few list items and populating it manually in InDesign and/or Acrobat DC was time consuming. Thanks!  I am interested in how you built this. What kind of coding was implemented? Just curious.

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 ,
Jun 07, 2020 Jun 07, 2020

Copy link to clipboard

Copied

Download this demo and look at the code:

https://www.pdfscripting.com/public/FreeStuff/PDFSamples/PDFS_CopyPastListEntries.pdf

 

You can find out everything you ever wanted to know about PDF list programming here:

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

 

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

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 ,
Oct 08, 2021 Oct 08, 2021

Copy link to clipboard

Copied

LATEST

I found this utility and it is really cool.  Problem is I have a form which requires custom export values to be added to the dropdown.  I have looked to find a way to modify the script from above to do it and have been unable.

 

Also How would I do it the other way around?  Create the ListEntries field from the Dropdown1

So my user can I can edit thrm and them to update the dropdown?

It would also need to take the export values to the list so both can be updated.

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 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

This saved me SO much time. Was so surprised to see a solution crafted for this particular request. Cannot thank you ENOUGH! 

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