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

Question

Question

Signature from Topaz signature pad in forms won't convert to .pdf or tiff image

asked on November 10, 2015

Hello all,

 

I am trying to get Topaz signature pads to work with the signature field within Forms. I am using the following code and it allows me to sign with the signature pad in the signature field in Forms. 

However, during the workflow it reaches an error when it tries to convert the form to a tiff image or .pdf.  

Without the code in place, the form goes through the workflow properly. 

The model Topaz signature pad I am using is T-S460-HSB-R.

 

Thank you in advance

var baseUri = "http://localhost:47289/SigWeb/";

function initSigWeb(){
        var ctx = $("#sigTabContent .signatureSettings").getContext('2d');
          ResetParameters();
        SigWebSetDisplayTarget(ctx);
        tmr = setInterval(SigWebRefresh, 50);
        SetDisplayXSize(438);
        SetDisplayYSize(150);
    SetJustifyMode(0);
        SetTabletState(1);
        $("#form-signature-dlg").on("shown.bs.modal", function(){
              $("#sigNav a:eq(1)").click();
                KeyPadClearHotSpotList();
                ClearSigWindow(1);
               ClearTablet();
              SetLCDCaptureMode(2);
              $("button.signSignatureBtn").removeAttr("disabled");
        });
          $("span.clearSignature").on("click", function(){
              SetLCDCaptureMode(1);
              KeyPadClearHotSpotList();
                ClearSigWindow(1);
               ClearTablet();
              $("button.signSignatureBtn").removeAttr("disabled");
              setTimeout(function(){SetLCDCaptureMode(2);}, 2000);
          });
          $("#form-signature-dlg").on("hidden.bs.modal", function(){
            SetLCDCaptureMode(1);
              KeyPadClearHotSpotList();
                ClearSigWindow(1);
               ClearTablet();
    });
}

$(document).ready(function(){
  $.getScript("http://localhost:47289/SigWeb/SigGetScript/SigWeb.js", initSigWeb);
});

 

0 0

Answer

APPROVED ANSWER
replied on November 19, 2015

Try

var baseUri = "http://localhost:47289/SigWeb/";

function initSigWeb(){
        var ctx = $("#sigTabContent .signatureSettings").getContext('2d');
          ResetParameters();
        SigWebSetDisplayTarget(ctx);
        tmr = setInterval(SigWebRefresh, 50);
        SetDisplayXSize(438);
        SetDisplayYSize(150);
    SetJustifyMode(0);
        SetTabletState(1);
        $("#form-signature-dlg").on("shown.bs.modal", function(){
              $("#sigNav a:eq(1)").click();
                KeyPadClearHotSpotList();
                ClearSigWindow(1);
               ClearTablet();
              SetLCDCaptureMode(2);
              $("button.signSignatureBtn").removeAttr("disabled");
        });
          $("span.clearSignature").on("click", function(){
              SetLCDCaptureMode(1);
              KeyPadClearHotSpotList();
                ClearSigWindow(1);
               ClearTablet();
              $("button.signSignatureBtn").removeAttr("disabled");
              setTimeout(function(){SetLCDCaptureMode(2);}, 2000);
          });
          $("#form-signature-dlg").on("hidden.bs.modal", function(){
            SetLCDCaptureMode(1);
              KeyPadClearHotSpotList();
                ClearSigWindow(1);
               ClearTablet();
    });
}

$(document).ready(function(){
 if (!window.isPrintMode){
  $.getScript("http://localhost:47289/SigWeb/SigGetScript/SigWeb.js", initSigWeb);
 }
});
0 0

Replies

replied on November 16, 2015

On way around this is to check if the form has been submitted or not. I have found that when the form has been submitted, all the input fields are replaced with div elements with a class of "cf-medium". Using this logic, you could check if the form has been submitted, and if so, do not load the "initSigWeb" function.

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

Sign in to reply to this post.