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

Drop down menu pre-populates other fields in a form

AndrewMatthews
Registered: May 27 2008
Posts: 8

Hello,

I have an appraisal form where you select your job title from a drop down list of job titles at the begining.

Later in the form there is a list of competencies what have levels (number values) attached to them which are dependant on the role you choose.

Is there any way that i can have a table of data (roles, competencies and values) in the background of the form so that when a user chooses a role the form fills in the correct values later in the form?

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi AndrewMatthews,

Yes, this can be done with some JavaScript. Here is an article at JavaScript Corner with a downlaodable PDF example that does pretty much what you are asking for. Download the example file and open it in Acrobat so you can examine the code used-
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/

Hope this helps,

Dimitri
WindJack Solutions
www.windjack.com
AndrewMatthews
Registered: May 27 2008
Posts: 8
Thanks very much for the reply but these instructions are for editing the form in Acrobat which i cannot do. I can only edit the form in LifeCycle Designer 8.0.

I tried to apply the same code in lifecycle designer but as I do not have enough knowledge in Java (or lifecycle designer) it didn't work.

Thanks for the reply though.
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi AndrewMatthews,

There are two other articles at JavaScript Corner on programming drop-down lists that include example LiveCycle Designer forms- you can download the PDFs and open in Designer to examine the code.

http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/
http://www.acrobatusers.com/tutorials/2007/10/list_and_combo_in_lc/

Hope this helps,

Dimitri
WindJack Solutions
www.windjack.com