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

Radiobutton conditions

rdv1979
Registered: Jan 27 2011
Posts: 5

Good evening to all,
 
I am pretty new at this. I have a radiobutton (YES(opt1) and NO(opt2)), if value is NO, do the following:
 
Mark two fields with an X and don't calculate qty42 and qty46 (both of these fields sum(qty1-qty11).
 
I would totally appreciate some guidance on this.

My Product Information:
LiveCycle Designer, Windows
rdv1979
Registered: Jan 27 2011
Posts: 5
Can anyone guide me on this request???
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1876
Did you create the form fields in Acrobat or LiveCycle Designer?
rdv1979
Registered: Jan 27 2011
Posts: 5
LiveCycle Designer
rdv1979
Registered: Jan 27 2011
Posts: 5
Help!!!!
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
If the 2 fields you want to exclude from the calculation are numeric fields, one can not put an 'X' in them unless you change the filed format type and that is not possible in LiveCycle Designer.

Why not just clear the fields and not perform the calculation. You need to use an 'if' statement to check the value of the radio button. If the value of the radio button is not 'No', then sum the fields, else set the value of the text fields to null.

George Kaiser

rdv1979
Registered: Jan 27 2011
Posts: 5
Thanks for the reply George.

I am trying to do the following if radiobutton equals "NO" then mark text fields EC and DC with "X" and don't calculate qty40 and qty42.

Qyt40 and qty42 are the same, they sum qty1-11....

I have the following so far to mark the "X":

On change:

if (this.rawValue == true) {

EC.rawValue = "";
}
else {

EC.rawValue = "X";
}

This works just fine, just need to add DC to do the same, Stuck here.

Any help would be so helpful, maybe a sample code.