ink sketch validation

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Gerald Marxer
Posts: 6
Joined: Tue Dec 02, 2014
Contact:

22 Jun 2016

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

22 Jun 2016

Hi,

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;
});
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...)

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests