Thank you. However, I am new to scripting in LCD and this doesn't seem to be working.
Could you please tell me what I am doing wrong? I want a message stating, "Sorry, you do not qualify for this study." to pop up when the radio button "yes" is clicked. The help states that I need to add this line:
$host.messageBox( STRING param1 [, STRING param2 [, INTEGER param3 [, INTEGER param4 ] ] ] )
So, I selected the "yes" radio button and typed this into the Script Editor:
$host.messageBox( STRING Sorry you do not qualify for this study param1 )
I removed the other parameters since the help states that they are optional. By the way, I placed this line of text after one that was already there:
----- form1.#subform.RadioButtonList.#field::validate - (FormCalc, client) -------------------
When I check the PDF preview I get an error stating that the script failed (language is formcalc; context is xfa.formform1.#subform.RadiobuttonList.#field)script=$host.messageBox(STRING Sorry you do not quality for this study param1) Error:syntax error near token 'Sorry' on line 1, column 30.
Any help would be much appreciated.