Skip to content
Advertisement

Signature Pad and DOMPDF used in e-signature plugin for CRM platform

I have created a plugin which must generate a signed PDF. Before generating the PDF, you will need to input your name in a box and draw a signature using the pad.

I tried to do like in this question, but I get an error: Uncaught TypeError: $(...).signaturePad is not a function. Beside this error, the CSS is not loading, not JS too and the page where you need to sign looks like this: enter image description here, but if I open the sign.html file in PC, it looks normal, like this: enter image description here

I get this on every CSS and JS file that I have: enter image description here

So, what I want to do is to solve the error from the signaturePad function and load the CSS & JS files properly, then after clicking Sunt de acord cu termenii si conditiile! to go to /templates/contract.php page and generate the PDF file with the signature that I have made on the sign.php file.

This is the code of sign.php file:

JavaScript

Advertisement

Answer

Now CSS and JS files are loading.

I’ve added:

JavaScript

and

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement