Hide subform if text field is null
I have this script on the change event of a text field:
if ((this.rawValue != "null") || (this.rawValue != ""))
{
checkBoxThree.presence = "visible";
}
else
{
checkboxThree.presence = "hidden";
}
It is correctly displaying the checkBoxThree subform when data is entered in the text field.
However, if the user goes back and deletes the text, I would like the subform to become hidden and it isn't. How should I change the script to accomplish this?
Thanks,
MDawn