I have a results slide which pulls in data from several other results slide.
The problem is that the results percentage is showing the percentage with decimal points. From a cosmetic point of view I would like the percentage rate to be rounded up or down to the nearest full number.
Good morning, so Mike and I were talking and I got it to work in SL2, but I have Storyline 360, and unless my eyes are failing me I can't see anything different from the two files but I can't get it to work in 360. Mike has SL2, so he can't see my 360 file. I was wondering if anyone was up for it, if they could look at these 2 files one is SL2 the other 360, I put the identical 3 question quiz in with the RoundingScore. I really like this option, but can't see what I am doing wrong in 360. Cheers
I am wondering if you were able to get your rounded score in Articulate 360. I have followed the instructions in all the threads and checked all your triggers and variables.
Technically I have done it correctly but I cannot get the score to display without the decimal places.
I'm not sure if Teresa was able to get this sorted, but it looks like Mike shared a solution above.
I'm not sure if they are still subscribed to the conversation here, but you are welcome to reach out to the users directly via the 'Contact Me' option on the user profile if you do not hear back soon.
Unfortunately I was unable to get it to work in 360 only Storyline 2. Would be nice to see if Articulate can look at Storyline 2 and see how it can work in 360. Or it would be nicer if the feature request was approved as I am no javascript person that is for sure. Good luck.
Leslie, it looks like no community member was able to have an opportunity to check my 360 version, is this something you can look at and see how the SL2 works and 360 is not working...did I miss something. I just kind of gave up worrying about it, but if there is a fix that would be great.
Thanks for popping back in with an update. There has been a lot of conversation here, so were you using a JavaScript solution? If so, the JavaScript coding is not something our team is able to assist with, but if I've misunderstood and you're running into something else we could take a look for sure.
If the latter is the case, then with your permission, I'd like you to share your project file with our support engineers to investigate what's happening. You can share it privately by uploading it here. It will be deleted when troubleshooting is complete.
Sorry, but i call that a cop out. If JS functionality is not supported, why is it there? I wouldn't expect you to support the actual JS code, but how it works?
Hi Leslie, I used Mike's Decimal word document so I did not use javascript. So it would be awesome if you can take a look. Mike's decimal document is about three posts up from my downloads. So would like to see if someone can troubleshoot for sure. Thanks Teresa
Are you running into trouble with this as well? Please feel free to share your project file with our support engineers to investigate what's happening. You can share it privately by uploading it here. It will be deleted when troubleshooting is complete.
I see you got the decimal point to work in Storyline 360, I still haven't managed to, would you mind sharing the file? I would love to see it....Thanks Teresa
Hi Karen - It would appear this is still an issue.
The previous fixes mentioned do no seem to work anymore. I think it has some thing to do with SL360 not allowing the user to edit built in variables such as Results.ScorePercent.
The easy solution I have found is to use the java script mentioned on page 1 of this thread but you have to make a custom variable first, which you set its value to that of Results.ScorePercent then modify the new variable with the javascript.
I have attached a grab of my triggers from SL and below is the javascript I have used:
var player = GetPlayer(); var score = player.GetVar("ResultsScorePercentRounded"); var n = score.toFixed(0); player.SetVar("ResultsScorePercentRounded", n);
I hope this helps anyone else who comes across this issue down the line.
Thanks @jack Keena and all those who provided clues along the way to get it to work. I've used the JavaScript option under SL360.
I too would love to see this built into the SL software. I had 2 variables that needed rounding on the results page. Straight up, this should be taken care of by SL.
68 Replies
Well that's odd, I had the entire explanation in there. I suppose I went over a limit? I've placed it into an attachment for you.
Wow Mike, this is great, thank you so much for taking the time to share! Truly appreciate it!
Cracking explanation Mike.
Thus removing the need to add JS.
Good morning, so Mike and I were talking and I got it to work in SL2, but I have Storyline 360, and unless my eyes are failing me I can't see anything different from the two files but I can't get it to work in 360. Mike has SL2, so he can't see my 360 file. I was wondering if anyone was up for it, if they could look at these 2 files one is SL2 the other 360, I put the identical 3 question quiz in with the RoundingScore. I really like this option, but can't see what I am doing wrong in 360. Cheers
Hi Teresa,
I am wondering if you were able to get your rounded score in Articulate 360. I have followed the instructions in all the threads and checked all your triggers and variables.
Technically I have done it correctly but I cannot get the score to display without the decimal places.
Best regards
Liz
Hey Liz,
I'm not sure if Teresa was able to get this sorted, but it looks like Mike shared a solution above.
I'm not sure if they are still subscribed to the conversation here, but you are welcome to reach out to the users directly via the 'Contact Me' option on the user profile if you do not hear back soon.
Unfortunately I was unable to get it to work in 360 only Storyline 2. Would be nice to see if Articulate can look at Storyline 2 and see how it can work in 360. Or it would be nicer if the feature request was approved as I am no javascript person that is for sure. Good luck.
Leslie, it looks like no community member was able to have an opportunity to check my 360 version, is this something you can look at and see how the SL2 works and 360 is not working...did I miss something. I just kind of gave up worrying about it, but if there is a fix that would be great.
Hi Teresa,
Thanks for popping back in with an update. There has been a lot of conversation here, so were you using a JavaScript solution? If so, the JavaScript coding is not something our team is able to assist with, but if I've misunderstood and you're running into something else we could take a look for sure.
If the latter is the case, then with your permission, I'd like you to share your project file with our support engineers to investigate what's happening. You can share it privately by uploading it here. It will be deleted when troubleshooting is complete.
Hi Leslie,
Sorry, but i call that a cop out.
If JS functionality is not supported, why is it there?
I wouldn't expect you to support the actual JS code, but how it works?
TC
Hi Leslie, I used Mike's Decimal word document so I did not use javascript. So it would be awesome if you can take a look. Mike's decimal document is about three posts up from my downloads. So would like to see if someone can troubleshoot for sure. Thanks Teresa
Hi Tony,
I understand.
Are you running into trouble with this as well? Please feel free to share your project file with our support engineers to investigate what's happening. You can share it privately by uploading it here. It will be deleted when troubleshooting is complete.
Thanks for the update, Teresa. Please feel free to reach out via the link shared above and one of our support engineers can dive in for you.
I'd share a link to this conversation as well so that they will be all up-to-date on the solutions covered here as well as Mike's solution.
Hi Tony,
I was hoping that I could find a solution to this problem!
Thank you so for the attached file. I got it to work in Storyline 360!!
Thank you!!
Maureen
Hi Maureen,
I see you got the decimal point to work in Storyline 360, I still haven't managed to, would you mind sharing the file? I would love to see it....Thanks Teresa
I'm really surprised Storyline still doesn't round up percentages by default, even with the requests for this feature going back 6-7 years.
It's an industry standard in elearning courses, and is an issue raised again and again by our many clients.
Hi Karen - It would appear this is still an issue.
The previous fixes mentioned do no seem to work anymore. I think it has some thing to do with SL360 not allowing the user to edit built in variables such as Results.ScorePercent.
The easy solution I have found is to use the java script mentioned on page 1 of this thread but you have to make a custom variable first, which you set its value to that of Results.ScorePercent then modify the new variable with the javascript.
I have attached a grab of my triggers from SL and below is the javascript I have used:
var player = GetPlayer();
var score = player.GetVar("ResultsScorePercentRounded");
var n = score.toFixed(0);
player.SetVar("ResultsScorePercentRounded", n);
I hope this helps anyone else who comes across this issue down the line.
Thanks @jack Keena - I had this come up today for a client and this works perfectly in SL360!
Thanks @jack Keena and all those who provided clues along the way to get it to work. I've used the JavaScript option under SL360.
I too would love to see this built into the SL software. I had 2 variables that needed rounding on the results page. Straight up, this should be taken care of by SL.
This post was removed by the author