You are viewing limited content. For full access, please sign in.

Question

Question

Forms sketch area

asked on February 18, 2019

I have a customer that wants to uses Forms to do inspections.  They require their inspectors to sketch inspection objects and so they need to allow an area on the form for this.  I have tried to follow the instructions from Custom HTML Drawing Canvas - How do I convert to an image so Forms retains drawing on "Submit" but am unable to get the mouse/cursor to draw on the canvas.

How do I reference the external js file or add it locally?

I need help getting this (or another method) working!

0 0

Answer

SELECTED ANSWER
replied on February 20, 2019

Since I could not get any mouse or touch events to trigger with sketch.js, I ended up bypassing the external sketch.js and just building the needed functionality directly in the Form JavaScript area.  It probably does not have all the options and error handling of sketch.js, but it is working for what I need.

0 0

Replies

replied on February 19, 2019

Any help/ideas from Laserfiche?

0 0
replied on February 19, 2019 Show version history

Hi Bert,

i believe I had to go to the github page here https://github.com/mobomo/sketch.js/blob/master/lib/sketch.js and download that file.

I then followed the advice here : https://answers.laserfiche.com/questions/71580/Dynamically-loading-external-JavaScript-file#76308

To put the JS file into the correct location and then load it from the Javascript and it worked

 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.