Skip to main content
Inspiring
October 19, 2016
Question

Single input by user automates other fields

  • October 19, 2016
  • 7 replies
  • 607 views

I'm sure this has been addressed before, but I have searched, and I don't seem to find the answer to my specific question. So here goes.

I am creating a PDF form that I want to auto populate about 15 other text fields (fields are all different) on the form based on the user entering an id in another field. For example, the user will enter "9999" in field 1, and it will then populate the rest:

Field 1 = 9999

Field 2 = some info

Field 3 = diff info

Field 4 = more diff info

etc.

Field 15 = yet more diff info

Option 1: The data in those other fields (fields 2-15) is in an excel file. So, do I merge the data, where field 1 acts as the trigger? If so, how do I do?

Option 2: Or should I just import a separate .txt file and create separate pdf forms for each user?  This seems to be the most easy, but also less automated for the user. Less impressive.

Option 3: Should I just create the script specific to each user in the main PDF and then save a separate pdf for each user? Where does it go? In field 1 or in each of the fields 2 - 15? What is the scripting for that?

Please be very specific as I am very new to using scripts.

Thank you very much for your help.

This topic has been closed for replies.

7 replies

Inspiring
October 19, 2016

I could, I just don't want to display the other unique IDs in a list for others to see.  It's a picky cosmetic thing for me.

Is there a way to do based on my original request?

try67
Community Expert
Community Expert
October 19, 2016

OK, I see. Yes, it can be done using a script. I'll send you a private message with some more information.

Inspiring
October 19, 2016

Yes, each user input is unique to the content in the spreadsheet. Only one unique id per row of content in the spreadsheet if that helps.

try67
Community Expert
Community Expert
October 19, 2016

Any specific reason not to use a drop-down field, then?

On Wed, Oct 19, 2016 at 10:10 PM, KimHRValue <forums_noreply@adobe.com>

Inspiring
October 19, 2016

The first field is a text field, not a drop down.

try67
Community Expert
Community Expert
October 19, 2016

That makes it a bit trickier (should the match between the user's input and the value in the spreadsheet be exact? if not, what should happen if there is more than one match? etc.), but it's still quite doable. If you're interested in such a script feel free to contact me privately and we'll discuss it further.

try67
Community Expert
Community Expert
October 19, 2016

Is the first field a text field or a drop-down? If the latter, I developed a script that allows you to do exactly that very easily. You can find it here: Custom-made Adobe Scripts: Acrobat -- Populate Fields From Dropdown

If it's a text field the same script can be used, after some slight modifications.