Populate from an user input

Adobe Community Professional ,
Apr 20, 2018 Apr 20, 2018

Copy link to clipboard

Copied

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?

TOPICS
Acrobat SDK and JavaScript

Views

285

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 20, 2018 Apr 20, 2018

Copy link to clipboard

Copied

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

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 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

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

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 21, 2018 Apr 21, 2018

Copy link to clipboard

Copied

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.

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 23, 2018 Apr 23, 2018

Copy link to clipboard

Copied

Thank you, but I know how to populate fields.

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

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 23, 2018 Apr 23, 2018

Copy link to clipboard

Copied

Use the getDataObjectContents method.

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 ,
May 06, 2018 May 06, 2018

Copy link to clipboard

Copied

LATEST

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.

😉

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