Avatar

Level 2

Unfortunatley, my inexperience with this language and working with objects will become apparent b/c I am having problems with the syntax as you'll see below.

>The RadioButtonList name is "RObject1"

>The three individual radio buttons are named R1, R2 and R3 with values of 30, 60, 90 respectively

>A numeric field named NField1 is supposed to display which radio button is selected

>Using FormCalc, the following script was used:

          if (RObject1=30) then NField1=30 else Field1=0 endif

>I used "calculate" as the event and committed the changes.

The below error is generated:

Script failed (language is formcalc; context is xfa[0].form[o].form1[0]#subform[0].NField1[0])

script=if (Object1=30) then NField1=30 else Field1=0 endif

Error: syntax error near token'=' on line 1, column 12

Obviously, my supposing that RObject1 would take on the value of whatever button was selected does not seem to be the case or I am incorrectly addressing the object.

Thanks