How can I access graphics in my library using JavaScript? | XM Community
Solved

How can I access graphics in my library using JavaScript?

  • 21 July 2021
  • 2 replies
  • 57 views

I want to implement a memory game in Qualtrics. Originally, using VS Code, the game consists of a JavaScript file, CSS file and a HTML document. The game can be played by running the HTML document, while the folder with the corresponding graphics is loaded in VS Code. I know that I can add JS code to a question, custom CSS in the design section and HTML by using the rich content editor. Now, I struggle with accessing the graphics that I loaded in my Qualtrics library in JS code. Can anyone help?

icon

Best answer by cbhavsar 21 July 2021, 15:42

View original

2 replies

Userlevel 4
Badge +26

Hi,
Graphics you can access Qualtrics in two ways...

  1. Loading Graphics on some graphics servers such as S3 and adding absolute path of it in your code.

  2. In Qualtrics - Navigate to "Library" section - "Graphics Library" - create folder (if required) and add all relevant graphics in here. Copy Graphic URL and paste the absolute path in your code

All the very best for your project!

https://community.qualtrics.com/XMcommunity/discussion/comment/39212#Comment_39212Thank you!

Leave a Reply