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

Formcalc radio button

shahal
Registered: May 3 2007
Posts: 43

How do I use formcalc to add radio buttion values?
For example,
A multiple choice quiz has a question then options A B C (radio buttons). The correct answer is A so its value is 1. B and C values are 0.
Then students clicks a button and the values get added, displayed and emailed all at once.

My Product Information:
Acrobat Pro 7.0.0, Windows
pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
Since you mention formcalc I assume you are using LiveCycle Designer. You don't need a click for this--use a Calculate event instead. The values will calculate when the user tabs out of the field.

Set the values of the radio buttons in the Binding tab of the Object palette. Give each button a unique name.

Here is a simple sample that uses the fully qualified paths to the radio buttons. Put this on the field where you want the total to appear.

form1.#subform[0].subform1.RadioButtonList.bttn1+form1.#subform[0].subform1.RadioButtonList.bttn2+form1.#subform[0].RadioButtonList.bttn1a

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].

pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
Here is the full code of my sample:
form1.#subform[0].subform1.RadioButtonList.bttn1+form1.#subform[0].subform1.RadioButtonList.bttn2+form1.#subform[0].RadioButtonList.bttn1a

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].