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

Populate from an user input

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

527

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
LEGEND ,
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?

Votes

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

Votes

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

Votes

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

Votes

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

Copy link to clipboard

Copied

Use the getDataObjectContents method.

Votes

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

😉

Votes

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