Skip to main content
JR Boulay
Community Expert
Community Expert
Apr 20, 2018 2:41 PM UTC
Question

Populate from an user input

Hi.

I know how to populate several fields from data stored in an attachment when an user select an item in a dropdown list.

Now I need to populate several fields from an attchment but user must not choose in a list, he must enter his ID in a text field, and other fields must be populated accordingly to the input.

Is it possible?

How?

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
Apr 23, 2018 8:41 AM UTC

Thank you, but I know how to populate fields.

I just need to know how to look for a string into an attachment.

Translate
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
Apr 23, 2018 8:42 AM UTC

Use the getDataObjectContents method.

Translate
JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
May 6, 2018 3:43 PM UTC

Thank you.

Fortunately my client has canceled his request.
I could not figure how to match the input data with the one in the table.

;-)

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Inspiring
Apr 20, 2018 3:05 PM UTC

Is the ID that the user will enter included in data that could be stored in an attachment or hardcoded in a JavaScript?

Translate
JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
Apr 21, 2018 9:38 AM UTC

User's IDs are stored in the CSV file, with all data. Each set of data is on a row (about 15000).

Translate
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
Apr 21, 2018 3:49 PM UTC

I've developed this tool that allows you to set it up: Custom-made Adobe Scripts: Acrobat -- Populate Fields From Dropdown

I was built for a dropdown, but can be easily adjusted to work using a text field, instead, as the logic of looking up the value in the attached file and then populating the rest of the fields is the same.

Translate