Need javascript to checkbox in PDF form based upon value not null in another text field
Please help with javscript in text field custom calculation field in Adobe Acrobat Pro DC fillable form.
I have a NO and YES checkbox, with a TextField that will be NULL or have a text value.
- I want a check in the checkbox NO, if the text field is NULL
- I want a check in the checkbox YES, if the text field is NOT NULL
Thanks in Advance!
I saw this script on a user board below, but receive a syntax error at line 7, but don't know how to fix.
if((String(event.value) == "") || (event.value == ""))
{
this.getField("LB8No").value = "Off";
this.getField("LB8Yes").value = "Off";
}
else if(event.value <> "")
{
this.getField("LB8No").value = "Off";
this.getField("LB8Yes").value = "On";
}
