cluelabs stencil widget

Jul 31, 2020

Has anyone used this widget to capture results "score" or points?  I have everything working for name, date, pass or fail - but I can't figure out how to get the results points.  If anyone has a sample of how they did it, that would be great.

 

Thanx

13 Replies
Tim Hickman

Hi Jonathan,

I was told that the solution to capturing "score" data would be $500.00 minimum.  Crazy.  That being said, I think a better JS coder could figure it out.  There is another solution if you host on your server, but this was too long ago to remember.  I'll try & find some more info if you are still in need.

Tim Hickman

There are a few "tutorials" on their site, but I could not get the score to work.  The others worked.  Is this in lieu of an LMS?  When I have a sec, I can try to find another solution if you are trying to capture data instead of using an LMS. I have a friend who was doing this on his server, but he is not available at the moment.

Jonathan Huguenin

Yes, of course! It is a 3-step process. I setup Storyline in English and I hope my translation will be good

1 - Create a variable that will get the value of the result. In my case, it is called "result" (Type = Number and Default Value = 0)

The variable "stencilusertoker" is specific to Cluelabs and the other variables are text variables that will also be sent to Cluelabs.

1 STEP

2 - Create a trigger that will send the result of the learner to this variable. You have to create this trigger in the result slide.

In my case I want to have the final percentage (so the name of the variable is "Results.ScorePercent".)

2 STEP

3 - Create the JavaScript trigger so that it sends the value of "result" to the ClueLabs platform. 

You have to create this trigger in the result slide, just after the trigger of step 2.

3 STEP

Here is the JavaScript code (I had previously created a numeric "result" field in ClueLabs)

var player = GetPlayer();
var entry = player.GetVar("result");
CloudSet('result', entry);

That's it! I hope this will help you. Don't hesitate if you need more details.

Thank you and have a nice day.