javascript make fields read-only until signature field is filled
I have a script that works for most but not all of my use cases. It runs on "mouse up" on the second signature field in my form, which is set to read-only by default. The intent is to keep the second signature field as read-only unless the first signature field is filled in. Here's the full script:
if(this.getField("Signature1").signatureValidate()==0)
{this.getField("Signature2").readonly = true; app.alert("Signature1 needs to be completed before you can sign here.")}
else
{this.getField("Signature2").readonly = false; }
The issue I'm having is that if a user's signature won't validate, but is present, it won't allow the second signature field to be signed. I realize that this might present security issues, but I am unconcerned with a signature actually validating, I just need it to be there.
I think my question is simple! What do I substitute for this part of my script,
.signatureValidate()==0
to just require that the first signature be not blank, rather than validated? I tried a couple things like:
.value!=null
.value!=""
But they didn't work for me.
