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

Setting checkbox on using drop down menu as a guide

mbryar
Registered: Jul 8 2009
Posts: 7
Answered

Hi there,

This is my first try at forms using Livecycle Designer. I am trying to get some checkbox to be checked depending on what value is chosen a drop-box menu.

Example:

Dropbox on page 1, fieldname: department. If a user choose administration, it would check on page 3 the checkbox named openoffice, and another one named worldclient. if in the dropbox they choose another choice, it would check other fields.

I tried looking around a little but I am a bit lost. :(

Thank you very much for any help you can spare on that to get me going. Never thought we could do so much using Pdf forms.

Mike B.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
This should be possible with a switch-case-script.

Example Script for the change event of your dropdown box on page 1.
switch (xfa.event.newText) {case "administration":Form1.Page3.CheckBox1.rawValue = "1",Form1.Page3.CheckBox2.rawValue = "0",Form1.Page3.CheckBox3.rawValue = "1",Form1.Page3.CheckBox4.rawValue = "0";break;case "another choice":Form1.Page3.CheckBox1.rawValue = "0",Form1.Page3.CheckBox2.rawValue = "1",Form1.Page3.CheckBox3.rawValue = "0",Form1.Page3.CheckBox4.rawValue = "1";break;}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

mbryar
Registered: Jul 8 2009
Posts: 7
Awesome!!!

Thank you very much for your fast response!!!!!

I'll try this right now :)
mbryar
Registered: Jul 8 2009
Posts: 7
Hi there again :)

is there a limit, or a special way to put more then 7-8 case variables?

Ie:

case "1":
...
case "2":
...

...

Case "12"

It seems to stop working when I put 7-8 different Case. then nothing works anymore.

Any idea?

Thank you :)