Skip to main content
New Participant
September 16, 2021
Question

Auto fill fields based on text entered in another field

  • September 16, 2021
  • 1 reply
  • 1409 views

Hello,

I fill out multiple PDF forms a day, and I’m looking to save time by having some of the fields auto fill based on information from another field.  ie: When I enter a Customers Name at the top of the form, I’d like to have 2 other fields auto fill;  Zip Code, and Travel Days.

Would it be better to use a script, import data from Excel, or import data from Access?  I’m new to this kind of thing, so any help would be greatly appreciated!

This topic has been closed for replies.

1 reply

Adobe Employee
September 22, 2021

Hi,

 

Thanks for reaching out to us. For the example that you shared, are the fields which you want to be autopopulated are static always? If yes, you can use simple javascript like

if (this.getField("Customer Name").valueAsString=="xyz")

       event.value = "Some zipcode";

else

       event.value = "Some other zipcode";

Or else, it can be done from an excel sheet too. You can checkout this page as an example: https://answers.acrobatusers.com/Can-I-import-data-Excel-spreadsheet-fillable-PDF-Form-q113686.aspx

 

Thanks

[As Community Admin we are removing personal details to avoid phishing attempts]

 

try67
Community Expert
September 22, 2021

Are you an Adobe employee? If so, please ask to be tagged as such.