I have the code below on the click event of a button which updates a record with any changes. When the form opens, a new record is automatically added to the database. The button is labeled "submit" , but it really updates.
I am trying to make sure the copyPersonMail field (radio button) has data. When I click the submit(update) button, there is no feedback from the form if the field is empty. What am I doing wrong?
xfa.sourceSet.WrkComp.update()
if (copyPersonMail.rawValue =! null && copyPersonMail.rawValue.length >= 0)
endif
xfa.host.messageBox("Your application has been submitted. Please print a copy for your records. There is no need to save the form. It has been saved to the database.THANK YOU!!", "Workers Comp Form Submitted", 3, 0);
I am receiving the following error: Script failed (language is formcalc; context is xfa[0].form[0].Form1[0].InjuryNotice[0].#area[1].copyPersonMail[0])
script=if (not (copyPersonMail.isNull | copyPersonMail == ""))
Error: syntax error near token ')' on line 1, column 55.
I would appreciate some assistance. Thanks