Akin to the query asked in this thread, I am looking to embed an HTML-based game directly into a Qualtrics question. While I am capable of embedding an image that links to a new window containing the game, I need to be able to restrict participants' time with the game using the Page Timer feature. As I understand it, any requisite JavaScript libraries would need to be included in the Header of the survey, and any HTML would go in the Source of the question.
For some additional background, I originally attempted to embed a game from htmlgames.com - specifically, Cube Crash (about a third of the way down that list), and was met with the error "ERROR: Please provide a 'game' argument!" This brings us back to my disclaimer - I am unsure as to what causes that error because of my limited experience with JavaScript. Further, when attempting to add the JavaScript directly to the header of my survey, I'm informed that I can't use the document.write function (which, as I understand it, replaces everything previously existent on the page with the game). I'm unsure how/if I can edit that out.
I think that's the bulk of my issue. If anyone has any advice on how to tackle this issue or alternative solutions, I would greatly appreciate the help. Thanks!
Best answer by Anonymous
View original