I am using the code below to convert a numbered dropdown menu into a long text field:
form1.#subform[0].TextField1[0]::calculate - (FormCalc, client)
if (DropDownList2[2] eq "N/A") then
TextField1[0] = ""
elseif (DropDownList2[2] eq "1") then
TextField1[0] = "one long text"
elseif (DropDownList2[2] eq "2") then
TextField1[0] = "two long text"
endif
My problem is that the field works correctly but I am getting this error message:
Script failed (language is formcalc; context is
xfa[0].form[0].form1[0].#subform[0].TextField3[1])
script=if (
Error: syntax error near token '(' on line 3, column 0.
Any help you could provide would be greatly appreciated.
Thanks