Page 1 of 1
Signature read-only
Posted: 27 Nov 2017
by GeraldMarxer
Hi,
How can i set the signature field to read-only by javascript ?
I want to set this field to read-only if the status field as a specifc value.
Re: Signature read-only
Posted: 29 Nov 2017
by Nikita Kurguzov
Hello, Gerald!
Try to use this script to make Ink Sketch control readonly:
Code: Select all
$('#fd_signature-0').attr('style', 'pointer-events:none;');
and this code to make it editable again:
Code: Select all
$('#fd_signature-0').attr('style', 'pointer-events:auto;');
If you have more than one Ink Sketch control, replace fd_signature-0 with fd_signature-1, fd_signature-2 and so on.
Re: Signature read-only
Posted: 29 Nov 2017
by GeraldMarxer
Hello Nikita,
Sorry, this code does not work with internet explorer.
But it works with Google Chrome or edge.
Do you have also a solution for Internet Explorer ?
Re: Signature read-only
Posted: 29 Nov 2017
by Nikita Kurguzov
It does work in Microsoft Edge, but doesn't work in Internet Explorer, even though the property is supported, it seems that SharePoint layout prevents this style from working correctly.
For different implementation, I recommend you to write your request to our support -
support@spform.com
We will find a way to implement this functionality for you, but it will take some amount of work, so it would require you to purchase 60 minutes of extra support from our store -
https://spform.com/buy/support-maintenance