These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Autopopulate field based on two other fields

SandiC
Registered: Oct 17 2008
Posts: 17
Answered

I would like to be able to autopopulate the fax number field based on the office location and department. Is that possible? I have both Acrobate & Live Cycle Designer, however I am just beginning with LCD.

My Product Information:
Acrobat Pro 8.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Sure it's possible, but will probably require a bit of programming. How best to set up the fields and what specific code you'd use will depend on whether you choose to use Acrobat or Designer to create the form. When you decide, post again with more details about how you've set up the form.

George
SandiC
Registered: Oct 17 2008
Posts: 17
I have the form in Live Cycle. I have all of the text fields set up. Also, I have a drop down box with the office locations. What I would like to see happen is based on an office location, then specific departments (in two of the six locations) autopopulate the return fax number. Example If Office = Greenville and Department = Accounting, then ###-###-####.

I had a thought while I was typing that - would it be more simple to combine office & department in the drop down list and base the if/then statement off of one field rather than two?
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Yes, that would make everything a lot simpler. For combo boxes created in Acrobat, you can set the Export Value of a list item equal to the fax number, and then copy this value to the text field when the value is committed. This requires very little scripting (much simpler than the alternative). You can probably do something similar in Designer, but someone else will have to show you how.

George