Skip to main content
June 17, 2016
Question

Adobe form auto populate field.

  • June 17, 2016
  • 1 reply
  • 842 views

I have field 1, 2, 3

If I input A in field 1, it will look up from below data and auto fill field2 with value B and field 3 with value C.

A,B,C

D,E,F

This can be an text file or a database.

Is it possible by using javascript? I will create the form using Acrobat DC Pro, and user to open with adobe reader.

Appreciate any help or suggestion, thanks.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
June 17, 2016

It's possible with a text file, yes, but the file will have to be attached to the PDF itself. Also, it will require writing a custom-made script to achieve it.

June 17, 2016

Do you know what script method can I use, for read text data and do the lookup??

Thanks.

try67
Community Expert
Community Expert
June 17, 2016

The basic method to use to read the contents of an attached file is

getDataObjectContents, of the Doc object.

On Fri, Jun 17, 2016 at 10:11 AM, yfz12832227 <forums_noreply@adobe.com>