This topic is locked
[SOLVED]

 Make Signature Pad Read Only

1/30/2021 12:36:19 PM
PHPRunner General questions
R
RBrogen author

Hi Everyone,
I have a page that has 2 signature pad fields on it, one for client signature and one for my signature. The one for my signature I have set the background parameter to be a picture of my signature so on the page it looks like I have signed it (see screenshot). I have setup the code to test for the sign in by a client contained in userGroup 3 which means all fields on the page are read only except the client signature. When I open the form as the client I can still mark over my signature and it saves the changes over top of the signature pad field for my signature. I have tested and the userGroup value is testing correctly and the "if" statement is being executed. There are no errors in console. Any thoughts as to why the signature field code below wouldn't prevent the signature pad from allowing this would be greatly appreciated.



var studioSig = Runner.getControl(pageid,'studioSig');

var studioSigDate = Runner.getControl(pageid,'sigStudioDate');
//UserGroup 3 is Client Group which only have access to their signature field

if (proxy['userGroup']== 3)

{

console.log(proxy['userGroup']);

studioSig.makeReadonly();

studioSigDate.makeReadonly();

}


D
danaci 2/6/2021

create new view for signature pad table and give only read privileges for client

R
RBrogen author 2/7/2021



create new view for signature pad table and give only read privileges for client


Thanks Dana!