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

Batch import for Combo and List Boxes for PDF

Engaged ,
May 25, 2021 May 25, 2021

Hello all, does anyone know of a way to import a CSV or Excel sheet into a Combo or List box in Acrobat for an interactive PDF. I found a post about here here then mentions a handy script but the links have expired. Anyone know of any other scripts? 

TOPICS
Create PDFs , Edit and convert PDFs , PDF forms , Standards and accessibility
3.3K
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
1 ACCEPTED SOLUTION
Community Expert ,
May 26, 2021 May 26, 2021

I found this on the forums years ago and I use it all the time. I was unable to find it again but here's a link for you to download it. It will automatically populate a drop-down list with whatever you paste into the form. https://1drv.ms/b/s!AsOY4oj7seXTgaMhBAxO_bqsZSkaPA?e=r7cs8b

View solution in original post

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
Community Expert ,
May 25, 2021 May 25, 2021
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
Community Expert ,
May 26, 2021 May 26, 2021

I found this on the forums years ago and I use it all the time. I was unable to find it again but here's a link for you to download it. It will automatically populate a drop-down list with whatever you paste into the form. https://1drv.ms/b/s!AsOY4oj7seXTgaMhBAxO_bqsZSkaPA?e=r7cs8b

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
Engaged ,
May 26, 2021 May 26, 2021

Awesome thanks I may even be able to modify it to works for list boxes as well.

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
Engaged ,
May 26, 2021 May 26, 2021

I modified it to do both combo and list box if anyone else wants to do both.
https://drive.google.com/file/d/1_rydswIrMdTv1fwSVk9M1wkYudB_qbWk/view?usp=sharing

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
Community Expert ,
May 26, 2021 May 26, 2021

There is literally no difference between setting the items on a listbox and a combobox, they are identicle. So what exactly did you change? 

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

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
Engaged ,
May 26, 2021 May 26, 2021
LATEST

They are basically the same thing, but under the hood they dont exactly work the same because there is no way to convert a list box to a combo box. It may have something to do with the fact that list box can do things like allow for multiple select, which combo boxes cannot. 

I duplicated the button and made a list box, called it list one and changed the script to apply the effect to the list box instead of the combo box. then I duplicated the clear command in the rest button and applied it to the list box.

This is necessary since you cannot convert one into another in Acrobat. And even in Adobe Indesign, when you change one to another it deletes all of your list items so you have retype everything. 



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
Community Expert ,
May 26, 2021 May 26, 2021

You'll find an example file here that shows how to fill a list from pasted text:

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

 

And you'll find info and some paid-for tools for importing data into PDFs from various data formats. 

https://www.pdfscripting.com/public/Form-Data-Handling.cfm#ImportData

 

 

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

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