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

Check boxes

shaklee
Registered: May 13 2008
Posts: 48
Answered

I am using LiveCycle Designer 8.0.

When I click a checkbox named AS400CANADA I want the checkbox names
ONDEMAND to automatically become checked as well.

I basically want it to be automatic for the user. They click one and the other
auto checks.

How would I do this in Javascript or FormCalc.?

thanks.

My Product Information:
LiveCycle Designer, Windows
Helen_Dyksley
Registered: Jun 4 2007
Posts: 27
If the checkboxes AS400CANADA and ONDEMAND have the same name in the hierarchy, then make them Global Fields. When one is checked the other will be also. I suggest making the 2nd checkbox read only then it can't be changed. Will this work for you?
MrFlow
Registered: Sep 7 2006
Posts: 13
With global binding the field in the data DOM will be the same. If you want to analyse the value of the fields seperatly (maybe after a data export with xfa.host.exportData("",0)) you need a different Binding.

The Scripting solution looks like:

if (this.rawValue == 1)
ONDEMAND.rawValue = 1;
else
ONDEMAND.rawValue = 0;

Depending on the On/Off value and the hierarchy order. Position this scripting in the change and form:ready-event of the field AS400CANADA.

Ciao
Jens