You are viewing limited content. For full access, please sign in.

Question

Question

Deny and Allow Type Signature on multiple Sig Fields

asked on March 18, 2021

I am trying to allow a typed signature on one field, but deny it on another. I've assigned the class 'memberSigField' to the built in signature field provided by LF and inserted the hide code to an if statement, but this code bit is not working. Does anyone have any ideas on if this is possible?

  if ($(".memberSigField") {
 	$("#sigNav a:eq(0)").hide();
  	$("#form-signature-dlg").on("shown.bs.modal", function()
	{
	$("#sigNav a:eq(1)").click();
  	}); 		
  }

 

0 0

Answer

SELECTED ANSWER
replied on March 18, 2021

Assuming you have set your signature fields to "Prompt to draw or type signature", you can use use Javascript like this: 

$(document).ready(function () {
  
  $('.drawOnlySignature input').click(function() {
    $("#sigNav a:eq(0)").hide();
    $("#sigNav a:eq(1)").show();
  	$("#form-signature-dlg").on("shown.bs.modal", function()
	{
	  $("#sigNav a:eq(1)").click();
  	}); 	
  });
  
  $('.typedOnlySignature input').click(function() {
    $("#sigNav a:eq(0)").show();
    $("#sigNav a:eq(1)").hide();
  	$("#form-signature-dlg").on("shown.bs.modal", function()
	{
	  $("#sigNav a:eq(0)").click();
  	}); 	
  });
  
  $('.typeOrDrawSignature input').click(function() {
    $("#sigNav a:eq(0)").show();
    $("#sigNav a:eq(1)").show();	
  });
  
});

 

If you want a particular signature to allow typed or drawn signatures, give it the Class Name of typeOrDrawSignature.

If you want a particular signature to allow only typed signatures, give it the Class Name of typedOnlySignature.

If you want a particular signature to allow only drawn signatures, give it the Class Name of drawOnlySignature.

You can use multiple different signatures in the same document with the different classes, since the code is written to to show the previously hidden fields when the next one is clicked.  However, if you add a signature field that doesn't have one of those class names, it will retain the hidden tabs from the last signature that was completed.

1 0

Replies

replied on March 18, 2021

You are a rockstar! Thank you so much!

1 0
replied on March 18, 2021

aww, thanks blush

I'm just happy to help.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.