Using P5.js in a Qualtrics survey

Jwebstercrowd United KingdomCommunity Member Qubie ✭
edited April 4 in Custom Code

Hey, I was wondering if anybody has had success (or if it is even possible) to insert a sketch built with P5.js ( into a Qualtrics survey.

I am trying to implement an interactive drag-drop feature which would be very straightforward to develop with P5, however I haven't yet been able to run any P5.js code in Qualtrics. I have inserted the library references into the header, however it still does not recoginize functions from the library in the JavaScript section of the questions.

Any advice would be appreciated, thanks in advance,