I have a research design that involves respondents playing a simple javascript game (which I guess I'll serve via an
Unfortunately, with the information you have provided, a proper can not be given. You'll first need to decide on the game, based on how its programmed, you'll be able to take a call on whether you need an iframe or can directly embedded it. (Something like a scratch game will require an iframe). (You can see this demo where we used an iframe to embedded a game.)
Post that, based on how flexibile your framework is, you'll have to decide how to update the score in Qualtrics.
Yes! Something like this little game.
So then let's say you want to log for every respondent how may turns it took to solve the maze (assuming the maze game doesn't sit on Qualtrics). At this point, extremely flexible.. looking for the simplest solution.
https://www.qualtrics.com/community/discussion/comment/37284#Comment_37284
Yes you can do that. But my answer will still be, it depends.
Get your game ready and then think about the integration. Send me a PM if you don't want to share the details in public or would like to have a more detailed conversation on this.
Happy to share here for now, since it could be useful to others!
The game itself is already coded and hosted. It's a simple .js card game (think: is the next card higher or lower than the last card in a randomly shuffled deck). They have 10 turns, I want to have the score (i.e. did they guess right 10x ? 4x? 0x? sent back to qualtrics so I can do analysis based on that and other survey-collected data (e.g. demographics, answers to questions)
https://www.qualtrics.com/community/discussion/comment/37288#Comment_37288
Update an embedded variable with the score, for each turn. Check out the Qualtrics JS API for how to do that.
Ha, this is the part I don't quite grasp! :)
(Im a social science grad student I don't have funds to pay for a developer and it seems straightforward once I know what to do!)
https://www.qualtrics.com/community/discussion/comment/37291#Comment_37291
Being a grad student, it wouldn't be news to you that vauge questions result in vague answers.
I am a PhD student myself. I provide custom programming on Qualtrics for a fee, but it's usually free for un-funded academic projects.
I maybe able to help you out, but all that will depend upon how much information you are willing to share.
Hehe! Let me know what specifics you need (in PM now if you like), and I am happy to be forthright!
https://www.qualtrics.com/community/discussion/comment/37294#Comment_37294
Ok, I solved it on my own. Here's the solution for anybody who may have a similar Q. My solution may also not be the most elegant, but it works!
- Use HTML directly into the question to create the layout & call any third-party .js
- if wanted, call .css hosted somewhere else in that HTML (e.g. on dropbox or wherever). If you need image files stored elsewhere call them here too. (This is NOT an
- Drop the .js code directly into the questions' javascript window
- To carry the "score" variable forward, create an embedded variable in survey flow & name it (e.g. j_score).
- Then use the call in the javascript window for that question: Qualtrics.SurveyEngine.setEmbeddedData('j_score', score); -- where score is the variable inside your .js code that keeps score.
- To have the game played for a certain # of rounds and the auto-advance, put this.hideNextButton(); at the top to hide to button
- Have a count variable for number of iterations (e.g., var i = 0;) .. then say you want to stop after 10 rounds, use: if (i==10) {(function(){that.clickNextButton();}).delay(1);}
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.