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

Auto fill fields based on text entered in another field

New Here ,
Sep 16, 2021 Sep 16, 2021

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!

TOPICS
Edit and convert PDFs , How to , JavaScript , PDF forms
1.2K
Translate
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 Employee ,
Sep 21, 2021 Sep 21, 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]

 

Translate
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 ,
Sep 22, 2021 Sep 22, 2021
LATEST

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

Translate
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