Detecting signature on signature pad

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
dsamadram
New User
Posts: 4
Joined: Thu Nov 07, 2013 3:03 pm
First Name: Devika
Last Name: Samad-Ram
Company Name: Banks DIH ltd.
Phone: 6922653
Country: Guyana
Contact:

Detecting signature on signature pad

Post by dsamadram »

How do we check to see if the profound UI signature pad has a signature?
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Detecting signature on signature pad

Post 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;
dsamadram
New User
Posts: 4
Joined: Thu Nov 07, 2013 3:03 pm
First Name: Devika
Last Name: Samad-Ram
Company Name: Banks DIH ltd.
Phone: 6922653
Country: Guyana
Contact:

Re: Detecting signature on signature pad

Post by dsamadram »

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests