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

Question

Question

Trying to use Wacom STU-530 in place of jSignature in Forms

asked on December 17, 2015 Show version history

Hi, I am trying to refactor the jSignature example code and use a Wacom STU-530 to create signatures in Forms. I'm able to draw the signature with the Wacom and see it displayed in the form. I click the Done button and image is created from the canvas just like jSignature and the base64 date is put in the textarea field of the form. But the form image saved in Laserfiche is the original form before the signature is drawn instead of the actual signature like the jSignature example. I can't figure out why this is happening. Any ideas? Thanks.

$(document).ready(function () {

    /**When the page loads, check if the sig data (hidden) field has a value.
       If it has a value, decode it and put it in the image, and remove the
       signature pad and its buttons.**/
    var sigvalue = $('.sigdata textarea').text();
    var sigrovalue = $('.sigdata .ro').text();
    if (sigvalue != '' || sigrovalue != '') {
        var decoded = htmlDecode(sigvalue == '' ? sigrovalue : sigvalue);
        var $img = $('<img class=imported></img>');
        $img.attr("src", decoded).appendTo('#sigimage');
        $('.sigGroup').remove(); //class added to the signature button and image custom HTML fields.
        $('.sigwarning').hide();
    }

    $.getScript('http://localhost/forms/js/wacom.js', function () {      
      CheckWacomPad();
    });
    $('#donebutton').click(function () {
	var sigdata = document.getElementById('wacomdisplay').toDataURL();
	$('.sigdata textarea').val(htmlEncode(sigdata));
	var $img = $('<img class=imported></img>');
	$img.attr("src", sigdata).appendTo('#sigimage');
      	$('.sigGroup').remove();
      	if (sigt != 0)
	     clearTimeout(sigt);
	sigt = setTimeout("ReleaseWacomPad()", padTimeout);
    });
    $('#clearbutton').click(function () {
        WacomCanvasClear();
	WriteImageToWacom();
    });
});

0 0

Replies

replied on January 3, 2017

My organization is looking to implement the same signature pads. 

 

Can I ask how you initially got yours setup, plus if you were ever able to resolve the issue you were having above?

1 0
replied on December 17, 2015

You need to have a second form in your business process that is identical, but takes the base64 value and converts it back to the signature inside the canvas. Then store that form instead of the starting form.

0 0
replied on December 17, 2015

Hmm, ok, I don't see a second form in the jSignature process. It appears to be storing the starting form. This is the result I'm trying to get with the Wacom process.

0 0
replied on June 3, 2021

Hello Steve,

 

Do you mind sharing where you got the wacom.js file?

0 0
replied on June 3, 2021

You need to get it from Wacom support.

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

Sign in to reply to this post.