# Qualtrics and p5.js

**URL:** <https://discourse.processing.org/t/qualtrics-and-p5-js/29184>\
**Category:** Coding Questions\
**Created:** [April 7, 2021, 11:15am UTC](https://discourse.processing.org/t/qualtrics-and-p5-js/29184 "2021-04-07T11:15:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jwebstercrowd](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@Jwebstercrowd](https://discourse.processing.org/u/Jwebstercrowd)\
**Post date:** [April 7, 2021, 11:15am UTC](https://discourse.processing.org/t/qualtrics-and-p5-js/29184/1 "2021-04-07T11:15:43Z")

</div>

Hey! I was wondering if anyone has had any success with implenting a p5 sketch inside of a Qualtrics survey? I have been unable to get it to work thus far, and now I’m wondering if it is even possible. I added the p5 library to the files and linked it, that didn’t seem to work, and I also tried including a link to the cdn repo for p5 directly in the source, which also didn’t work.

I have been able to link p5 sketches in webkit containers, but I would need the code to run directly from Qualtrics because I need to save user responses.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [April 7, 2021, 11:23am UTC](https://discourse.processing.org/t/qualtrics-and-p5-js/29184/2 "2021-04-07T11:23:40Z")

</div>

I have totally no idea about that platform but 3 suggestions: 1) you should change the topic category to p5.js (processing is for the java IDE) to help people find the topic 2) explain the steps you took more in detail to give the context and 3) check out the [instance mode](https://github.com/processing/p5.js/wiki/Global-and-instance-mode) as the global mode has often issues when integrating with other libraries

---

<div class="post-metadata">

**Author:** ![Jwebstercrowd](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@Jwebstercrowd](https://discourse.processing.org/u/Jwebstercrowd)\
**Post date:** [April 7, 2021, 11:52am UTC](https://discourse.processing.org/t/qualtrics-and-p5-js/29184/3 "2021-04-07T11:52:04Z")

</div>

Thanks on all 3 points.
