Clear Signature Pad Using Javascript

teoyh

Member
Hi is there anyway to clear previously sign signature using javscript

I tried using this but it did not work
Fabrik.getBlock('form_754').elements.get('mobile_loan_signature').update('');

Many thanks
 
I found it ; for the benefit of those who need it please see code below

var canvas = document.querySelector("canvas");
const context = canvas.getContext("2d");
context.clearRect(0, 0, canvas.width, canvas.height);
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top