Page 1 of 1

Detecting signature on signature pad

Posted: Tue Nov 12, 2013 9:03 am
by dsamadram
How do we check to see if the profound UI signature pad has a signature?

Re: Detecting signature on signature pad

Posted: Tue Nov 12, 2013 6:18 pm
by David
The signature pad widget returns the signature into the field bound to the 'value' property. The signature is returned as vector coordinates.

So you can check the bound field to see if it has any data to determine whether/not the user has signed it.

Move blanks into the field before displaying (to clear, if there was any prior drawing), and then check the bound field after the user submits. The field will be set to blanks if the user didn't do anything. It can also be set to '[]' if the user hit the 'Clear' button, that represents an empty set of coordinates.

So, you can use RPG like this:
RPG CODE
If BoundFld = '' Or BoundFld = '[]'; 

    // The user did not sign.

EndIf;

Re: Detecting signature on signature pad

Posted: Wed Nov 20, 2013 11:49 am
by dsamadram
Thank you.