Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Capturing signature images with signaturepad

curtisnelson
Kilo Explorer

We're using the Helsinki signature pad in our onboarding solution (to allow new hires to acknowledge documents), and we need to be able to capture an image of the signature and store in a separate database.   So far, all I can find are the points that make up the line segments of the signature (signature_image.data).   I noticed as I was playing around with the signature pad, that if I tested it by itself (not attached to a task), then looked in the signature_image table, there would be an attachment with the signature showing up.   Does anyone know what controls whether or not a signature image is generated?

Thanks,

Curtis

27 REPLIES 27

No problem.   It's a client side scripting thing.   Something to be avoided if possible



We use it in our PDF application in ServiceNow to handle signatures on PDFs.   It's why I'm (toooo) familiar with how it works.


Hey Reed,



Sorry to bug you again. You were so helpful yesterday and I was wondering if you have done anything like this or utilized the script in this way. I added a new variable (string) to the signature_image table called u_party. I want to be able to fill it in from the ui page or whatever takes those ui page values and populates the signature record.


I can display the field to fill in/check value but I can't get it to actually fill in the record on the signature table and I can't seem to find any other places where a script would be doing this for the signature pad.



This is what I have right now, I just inserted it into the same place in the ui page script where the rest of the stuff is filled out:


<input type="hidden" id="sysparm_draw_only" value="$[sysparm_draw_only]" />


  <input type="hidden" id="document_id" name="document_id" value="${sysparm_document_id}"></input>


  <input type="hidden" id="redirect_url" name="redirect_url" value="$[sysparm_redirect_url]"/>


  <input type="hidden" id="table_name" name="table_name" value="${sysparm_table_name}"></input>


  <input type="text"   id="u_party" name="u_party" value="${sysparm_string}"></input>



I made it text on the ui page so I could see it and make sure it was being defaulted correctly.


I'll be honest, I don't know what id's function is. I assumed name was just giving it a name to reference later (perhaps to fill out the signature record but I don't see the other variables being referenced anywhere).


my value is actually being pushed from the ui action and that's working just fine - it displays the "Manager" or "Employee" based on what ui action they are using.



Any help would be hugely appreciated!


Call me on my cell.   301.520.1421