Testing for Signature (Offline)
Posted: Tue Nov 26, 2013 4:20 am
Hi all.
I can provide the user which an opportunity to enter a signature, and that image control can be bound to a local database table "bytes" field for later upload to a server - but is there a way that I can "test" that a signature has been entered?
Ideally I want to only allow the user to press the "upload" button if they have signed. If there is no signature, then the upload button press will not perform the upload and will instead display a suitable pop up message.
I've tried testing that field (in the local Javascript) against "null" - but it always appears to be null regardless of whether a signature has been entered or not. I've also tried testing the ANNOTATION.IMAGE property of the control, and again that doesn't seem to work...
Does anybody have any examples of this type of logic? I'm probably missing something obvious!
Cheers.
Marcus.
I can provide the user which an opportunity to enter a signature, and that image control can be bound to a local database table "bytes" field for later upload to a server - but is there a way that I can "test" that a signature has been entered?
Ideally I want to only allow the user to press the "upload" button if they have signed. If there is no signature, then the upload button press will not perform the upload and will instead display a suitable pop up message.
I've tried testing that field (in the local Javascript) against "null" - but it always appears to be null regardless of whether a signature has been entered or not. I've also tried testing the ANNOTATION.IMAGE property of the control, and again that doesn't seem to work...
Does anybody have any examples of this type of logic? I'm probably missing something obvious!
Cheers.
Marcus.