December 4, 2017 at 10:54 am #12690
Hello to all
I’m not sure if I have to write in this section, tell me where I have to submit a request on this component.
I have a problem on MacOs 10.11 and Omnis Sudio 8.1.3 when I launch the JSSIGNATURE library gives me this error
‘ctrl_net_omnis_signature is not defined’
I followed the instructions
How can I correct the mistake?
Thank’sDecember 6, 2017 at 3:17 pm #12714asmithKeymaster
I added the two lines
MimmoJanuary 10, 2018 at 10:15 am #13132Rod CooperParticipant
The error ‘ctrl_net_omnis_signature is not defined’ implies that this file has not loaded.
I have just downloaded 8.1.3 on MacOS and followed the instructions on GitHub to add jsSignature without issue.
I can reproduce this error if ‘ctrl_net_omnis_signature.js’ does not exist in my /html/scripts folder or if the appropriate line has not been correctly added to /html/jsctempl.htm so it’s worth rechecking these again.
Also note, the html folder used on MacOS is the one in Library/Application Support/Omnis/Omnis Studio 8.1.3 x64 (hold alt key in finder Go menu to view).
One other thing to check is that the double quotes used when adding lines to jsctempl.htm visibly match those already used in the file as there are different variations of these on MacOS.
Hope that helps….January 11, 2018 at 8:13 am #13169
thanks for your help, you were right, I did not put the two lines of the script in the \ html \ jsctempl.htm file
Now it works, but instead of downloading a fie jpg, could not the signature be stored together with the text in order to resubmit the signed document in case of need?
Thank youJanuary 12, 2018 at 9:59 am #13170Rod CooperParticipant
Pleased to hear you now have jsSignature working…
Instead of downloading the jpg file, maybe you could print a report to pdf which contains text together with a picture field containing the signature. Take a look at the JS PDF Device sample in the Omnis Studio HUB for hints on printing to pdf.
You must be logged in to reply to this topic.