Uploading a .png file using javascript with a hidden file upload question.
Hi everyone,
I implemented a canvas in my Qualtrics survey for people to sketch on and I was expecting people could upload their sketch by clicking a button. Currently I figured out how to attach the current the sketch but I didn’t find a way to finish the uploading process. Is that even doable in Qualtrics?
Thank you!
Page 1 / 1
Hi, I think with Qualtrics there are 2 ways to upload images to the dataset. One would be to use the File Upload question type. The other would be to use the Signature question type. The Signature question type is actually already pretty suited to handle drawing images. I've modified this question type to expand the signature box, hide the sign line and X, and created a canvas on top of it that supports changing color and brush width.
To give it a try, first create a Signature question. Set the Box size to “Large” and disable the “Show ‘sign here’” toggle.
Then, use the Rich Content Editor’s HTML/Source view “<>” to update the Question Text with the below: