Using Results.ScorePercent in a Javascript trigger
Sep 23, 2013
Hello all,
I want to reuse the result of a quiz in a javascript trigger.
in my javascript, i can easily reuse the variables i created. but if i want to use the Results.ScorePercent and after reading several posts, i seems that i need to create a variable and use the "Adjust Variable" trigger to initiate this variable with the value of Results.ScorePercent. here is what i have done:
However when i want to display the value of FinalScore (Variable that i created), it displays the string Results1.ScorePercent instead of its value.
Any idea what i did wrong?
Cheers,
3 Replies
You are using a text field and assigning a value, so it is displaying the text you are typing
You need to use a number variable and assign the variable instead of value and choose the variable from the dropdown list.
Hi Flora! Looks like Phil is taking care of you here, but I just wanted to pop in and welcome you to E-Learning Heroes!
Thank you Phil. it works perfectly. It was simple but i couldn't find it. Thanks again and thank you for your welcoming message Leslie
Another question: i know that Javascript triggers are not supported in the ipad application. is it on the roadmap to get it supported?
The reason i need this is because i am developing a website and my storyline module needs to send results and time spent in the module to the website. i used the javascript to get the result and build an url to send it back. not sure how to do it with the ipad application.
any help would be helpful.
Thank you
Flora
This discussion is closed. You can start a new discussion or contact Articulate Support.