replied on December 18, 2018
Hi Jeff,
Thank you for reaching out. Please try the following:
- Download the latest SigWebPlus JS file from Topaz, it can be found here: https://www.topazsystems.com/sigweb.html (under Developer Information on the right-hand side menu).
- Place that file under directory C:\Program Files\Laserfiche\Laserfiche Forms\Forms\lib.
- After doing so add a custom HTML field to your Form (place it anywhere on the Form) and reference the script with something like: <script src="/Forms/lib/SigWebTablet.js"></script>.
- Update the Javascript in your Form with the snippet I'm adding here.
function initSigWeb(){
var ctx = $("#sigTabContent .signatureSettings").get(0).getContext('2d');
tmr = setInterval(SigWebRefresh, 50);
SetDisplayXSize(438);
SetDisplayYSize(150);
SetJustifyMode(0);
SetTabletState(1, ctx, 100);
$("#sigNav a:eq(0)").hide();
$("#form-signature-dlg").on("shown.bs.modal", function(){
$("#sigNav a:eq(1)").click();
});
$("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();
SetTabletState(0, ctx, 100);
});
}
$(document).ready(function(){
if (!window.isPrintMode){
initSigWeb();
}
});
Please let us know if this makes a difference.
All the best,
Neal