Add multiple items to a drop down box

Community Beginner ,
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

25.7K

Likes

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

Adobe Community Professional , 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.pdfThe 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...

Likes

Translate

Translate
Adobe Community Professional ,
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.

Likes

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 ,
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.

Likes

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
Adobe Community Professional ,
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.

Likes

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

Copy link to clipboard

Copied

Thanks heaps. That worked.

Likes

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?

Likes

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
Most Valuable Participant ,
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

Likes

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 ,
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!!

Likes

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
Explorer ,
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

Likes

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.

Likes

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
Adobe Community Professional ,
Sep 13, 2017 Sep 13, 2017

Copy link to clipboard

Copied

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

Likes

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

Likes

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
Adobe Community Professional ,
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

Likes

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.

Likes

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
Adobe Community Professional ,
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

Likes

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

LATEST

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

Likes

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