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

Newbie stuck again...

mnaussie
Registered: Oct 5 2009
Posts: 16

I am trying to get a result in one numeric field when a combo box is used. I have not done a scripting class yet and cannot seem to get the result that I need. Can anyone help me out? Here is my

form.https://share.acrobat.com/adc/document.do?docid=a9d4facc-4eb2-49a0-89e1-5738bf3d66ff

The code I am trying to get to work is in addnum10. If checkbox10 is chosen then value = numfield10 or $75, I don't care which. I have tried numerous senarios but my lack of knowledge is giving me a headache lol.

Any help appreciated!

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Ok,

the script you used...
form1.P1.Table1.Row10.addnum10::calculate - (FormCalc, client) var myCbox = getField("checkbox10");if(myCbox.value = "on"){this.event.value = "$75.00";}else{this.event.value = myCbox.value;}

...is only for AcroForms (Acrobat), not XML-Forms (LiveCycle), so it won't work here.

But a little script in FormCalc will do the job.
form1.P1.Table1.Row10.addnum10::calculate - (FormCalc, client) if(CheckBox10.rawValue == 1) then$.rawValue = "75.00"else$.rawValue = nullendif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs