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

Form text fields based on Initial List box choice

digitalwiz
Registered: Mar 9 2011
Posts: 20

Hi,
 
I'm using Acrobat pro 9.4.2.
I would like to create a new company evaluation form that allows me to use a list box to choose 1 of 30 types of employees and have the 18 text fields that describe the employee responsibilities automatically change to predetermined appropriate values.
 
So lets say I choose HR coordinator. I want Text box 1 to go from a blank to "coordinater HR services"
 
while the following 18 text boxes also change from blank to be the "responsibilities of the HR coordinator.
 
using the same form another supervisor could choose IT Tech and have all 18 text boxes automatically change to the IT Tech job responsibilities.
 
I have only see a few snippits of examples here and i dont understand hardly any of it.
 
thank you for any advice or assistance you can provide.

thanks

My Product Information:
Acrobat Pro 9.4.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This article explains the details of programing lists. It also has a sample file that is very close to the functionality you want.

http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle/


Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

adobetech55
Registered: Apr 18 2008
Posts: 9
Hello

I am using Adobe Pro 8.2.6 and have used it to convert our paper forms to online fillable versions on a regular basis.

Now I have been presented with a challenge to create from scratch a new form to collect Group History information.

What you have shown in your samples on this post is close to what I need in regard to the list boxes.
However, I have been asked to take it another step further and actually have the form fields below the list box change to reflect the list box selection.

Can you help me with this? I have a basic form created and
can send you that if it helps to understand what is needed.
Thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Take a look at the samples. The first one shows how to set values in other fields based on a list selection.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

adobetech55
Registered: Apr 18 2008
Posts: 9
If I have about 7 field boxes that need to appear if a list box was changed to Medical, can this be done?

If Vision was selected out of the list box, then it would only be 2 field boxes that would appear, not 7.

Is this possible? This is beyond my current capabilities in working with forms.

Thank you for your response!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes, showing and hiding fields is a standard form feature, see this article:
http://acrobatusers.com/tutorials/2006/show_hide_fields

Also, do a search on this site with "Show Hide Field"

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes, showing and hiding fields is a standard form feature, see this article:
http://acrobatusers.com/tutorials/2006/show_hide_fields

Also, do a search on this site with "Show Hide Field"

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

adobetech55
Registered: Apr 18 2008
Posts: 9
I am getting the idea now of how to do this.
I need to layout at least seven text fields and then adjust their show/hide according to the list box selection.
I was lost in which direction to go at first.
Thanks so much for the help!
adobetech55
Registered: Apr 18 2008
Posts: 9
When I do a search for the show hide field articles, I only
see half of the article posted.

A step by step article (I am that much of a newbie on this) on how to get text fields to either be visible or hidden would be tremendously helpful.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The search is mostly to see other forum messages where people have asked the same thing.

The article at: Show Hide Fields provides sample code as well as PDF example file.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

adobetech55
Registered: Apr 18 2008
Posts: 9
Thank you thomp! What I meant by seeing only half of the article is that my screen only shows the left side of what is there to read. The right side is gone and I only am able to read the left half of the paragraphs.

Also, I see most of the articles have Prerequisites: Familiarity with Acrobat Professional, the JavaScript Console, and the Acrobat JavaScript Reference.

I only have familiarity with Acrobat Pro, but not javascript console and reference.

My boss agreed to let me get more training for this, but at the time I was hoping to get this form finished by the end of this weekend. I will continue to search as much as possible until I find the article that helps a newbie to edit javascript from the very get go.
adobetech55
Registered: Apr 18 2008
Posts: 9
I should add in the event it makes a difference, that I am using LiveCycle Designer 8.05.02 to creat this form.
thanks again.