Jump to content

Signature pad with multiple embedded datapages


Recommended Posts

I am having a problem with the Signature Pad working correctly on an html page that has more than one datapage embedded in it.
As per http://forums.caspio.com/index.php?/topic/4693-js-adding-a-digital-signature-to-a-submission-form
The sig pad works as desired only in the first datapage embedded on an HTML page. Any additional datapages embedded into the html page throw console errors accessing the sig canvas.

The problem is.. I have an HTML page that displays an invoice. The first embedded datapage displays customer information, a second embedded datpage displays inventory items used and a third datapage containing the sigpad script, requires a customer signature and collects closing details then submits the invoice. The third datapage throws console errors running the sig pad script.
If I move the third datpage (the page that contains the signature script) to the top of the html page above the 1st and 2nd datapages the sigpag works correctly. Proving the script works only if it is contained within the first embedded datapage.
To work around this I created an HTML popup window that handles the signature. except now I find that I must have the signature script within the third datpage.

Any help on getting the sigpad working on an additional embedded datapage is greatly appreciated.

Link to comment
Share on other sites

You need to give your page a new ID by adding div to header and closing it in Footer:

Header:

<div id="mypage">

Footer:

</div>

and then in the line where you have

$('#caspioform').signaturePad({drawOnly : true});

Replace caspioform with "mypage"

$('#mypage').signaturePad({drawOnly : true});
Link to comment
Share on other sites

  • 4 years later...
  • 3 years later...

Hi - FYI for issues or troubleshooting in applying Signature Pad.

- Signature Pad not showing/working
- If you encounter an error in the console that says $(...) signaturePad is not a function
- MIME type ('text/html') is not executable

 

Sign.jpg?ver=1
 

Things to check/troubleshoot:
- Make sure to download the file from the forum post above and be able to set it as a File parameter (unzip the file first)
- Make sure that you called/inserted the right parameter name in the DataPage.
- If it is a Report DataPage with Search Form, make sure to also include the file and jQuery in the Search form configuration

Link to comment
Share on other sites

  • 3 weeks later...

Hi @Mauricia,

I don't have any issues with the signatures displaying in the HTML Block or in the PDF Download from a Tabular Report, so it may be something on your configuration. Can you share an export of your DataPage with test data to check it out? Are you using authentication?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...