Detecting signature on signature pad
-
- 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
How do we check to see if the profound UI signature pad has a signature?
- 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
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:
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
-
- 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
Thank you.
Who is online
Users browsing this forum: No registered users and 6 guests