ink sketch validation
-
- Posts: 6
- Joined: Tue Dec 02, 2014
- Contact:
Is there a possibility to verify that the user has signed on a ink sketch field by javascript?
I want to verify before coloseing the form that the user has put a signature in the ink field.
regards
gerald
I want to verify before coloseing the form that the user has put a signature in the ink field.
regards
gerald
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Use the code below:
If you have multiple Ink sketch controls in the form, set the appropriate index here:
fd_signature-0 (fd_signature-1, fd_signature-2, fd_signature-3...)
Use the code below:
Code: Select all
fd.onsubmit(function() {
if (!$('#fd_signature-0 > input').val()) {
alert('Please, sign the form.');
return false;
}
return true;
});
fd_signature-0 (fd_signature-1, fd_signature-2, fd_signature-3...)
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests