How to set Quiz id or Quiz name

Jul 16, 2012

Hello

I'm digging in story.js to stored results in a mysql database.

It works fin with an ajax method (jquery way).

I collect an user id with some lines of JS and i want to store results in the db for this user id and the quizz in used.

For identification of the quizz, i user the "strQuizId" variable. This variable is set automatically by the player (right ?) and his value is something like "6OxczmKKQ2V" (example).

I don't find in storyline how to fixed this value or how to fixed the strQuizName variable wich could by an alternative to strQuizId.

Someone know how to do that ?

thank's in advance

jl

3 Replies
Christie Pollick

Hi, Dave -- Thanks for reaching out with your question! 

I wanted to note, unfortunately, we are not able to provide support for JavaScript coding. Luckily, we have lots of community members who are typically more than willing to share their expertise and ideas! And for those who'd like to review it, here is a sheet on JavaScript Best Practices that may be helpful. :)

Dave Campos

Thanks for your response, I did some testing myself and it appears to be set on the player side when published.  Looking for the quiz id's in the source code it will list many areas where this is referenced,  have yet to see if changing in all the ares would make this work, but I would imagine you would have to do a find/replace every time you publish the content.

This discussion is closed. You can start a new discussion or contact Articulate Support.