Skip to main content
JR Boulay
Community Expert
Community Expert
April 20, 2018
Question

Populate from an user input

  • April 20, 2018
  • 2 replies
  • 784 views

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 has been closed for replies.

2 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
April 23, 2018

Thank you, but I know how to populate fields.

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

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
April 23, 2018

Use the getDataObjectContents method.

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
May 6, 2018

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.

;-)

Acrobate du PDF, InDesigner et Photoshopographe
Inspiring
April 20, 2018

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

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
April 21, 2018

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

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
April 21, 2018

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.