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.
I have tried both of the JavaScript work arounds suggested here and I can't get either to work so I assume I am doing something wrong, would anyone be willing to take a look at it for me?
PS I have added a big ugly button on the opening page to allow you to jump straight to the assessment.
This discussion is a little bit older, so I'm not certain if folks are still subscribed here. The Javascript pieces are something I'm not equipped to help with, so you may also want to look at reaching out to folks directly using the "Contact me" button on their profile!
Its causing me some problems too as we use SCORMCLOUD to monitor and report on our Storyline courses, and if someone gets 94.78% they are shown as a fail, but if it was rounded up it would be a pass. I think this is a feature Articulate need to look at as it is such a fundamental feature.
Is your passing score set to 95%? I know some folks have used the method here to set the score to round up.
As for the idea of a feature, we're always open to new ideas and ways of doing things, so I'm going to pass this idea along as I don't see many feature requests for it outside of these ELH discussions. You can always share yours with us right here. 😁
In the meantime, could you also set your passing score to 94% to account for the scenario that a user does score a decimal percentage? I'm not sure how many questions and points you have, but I imagine that's a rare scenario?
Hi Ashley, and thanks for getting back so quickly. You're right about the number of people whose score is a few tenths out on the passmark, and if it is 94% we often do a manual override to get them to 95, I had just hoped we could run a rule that automatically does this.
I have tried to make this work on so many occasions and have followed the instructions so carefully but I just never works and I still end up with the decimal point. Would anyone be able to have a quick look at my project file to see what I may be doing wrong? I would be SO grateful!! ( I am using Storyline 3)
Hey Rebecca, you're going to kick yourself or throw something at me, but your setup is perfect except for one thing. You need to set MyScore to Results.ScorePercent before executing the Javascript. Right now the javascript is looking to change MyScore, then it's injecting Results.ScorePercent into MyScore, thus doing nothing.
You're trigger jumped the gun!
Yep, you read that right. You need to switch the order of the triggers. Just tested it and it works like a charm! (Prepares to duck from a flying stapler)
I think every time I have a Storyline problem (I've been a Developer for 4 years now) it always boils down to tiny mistakes like this! Haha SO glad I am now to the bottom of this one, it has been bothering me for over a year now! Can't believe it was just because of the order of my triggers, lesson thoroughly learned! :)
PS thank you, this little module is now one step closer to being sent off - yay!
Awesome Rebecca - glad you got the help you needed! It's the little things that sometimes trip us up, but I'm glad that someone here in the community was able to help!
Hi there, Teresa. Thanks for chiming in! The recommendations in this discussion are the way to go for now. We're monitoring this feature request, and we'll let you know if we make any changes to how Storyline handles score percentages.
Crystal, are you able to see where this is sitting in the feature request line up at Articulate? I think I can manage to do what Tony showed, well gonna give it a try. But it looks like Ed Gen submitted a feature request 3 years ago...so curious to see if it has moved up the list it sure would make lives easier. :)
Regardless of the visual design, every results slide has at least one thing
in common , that being the variables that Storyline uses to store and
recall a learner's score. They are:
Results.ScorePercent
Results.PassPercent
The variable used to keep record of the learner's score when completing a
quiz or test in storyline is the Score Percent variable. The score needed
in order to pass is the Pass Percent variable.
Storyline allows us to create variables and store their values so that they
can be recalled at a later point. The variables can have numeric, text, or
true/false value. And in some cases, certain variables are reported to the
LMS.
68 Replies
Hi guys,
I have tried both of the JavaScript work arounds suggested here and I can't get either to work so I assume I am doing something wrong, would anyone be willing to take a look at it for me?
PS I have added a big ugly button on the opening page to allow you to jump straight to the assessment.
Thank you :)
Hi Rebecca,
This discussion is a little bit older, so I'm not certain if folks are still subscribed here. The Javascript pieces are something I'm not equipped to help with, so you may also want to look at reaching out to folks directly using the "Contact me" button on their profile!
OK Thank you Ashley!
Hi Pauly,
Can you just provide a short of example assessment with this Js so that that would be very easy for me to incorporate it.
I never actually ever go to the bottom of this, the decimal point still haunts me :(
Its causing me some problems too as we use SCORMCLOUD to monitor and report on our Storyline courses, and if someone gets 94.78% they are shown as a fail, but if it was rounded up it would be a pass. I think this is a feature Articulate need to look at as it is such a fundamental feature.
Hi Helen,
Is your passing score set to 95%? I know some folks have used the method here to set the score to round up.
As for the idea of a feature, we're always open to new ideas and ways of doing things, so I'm going to pass this idea along as I don't see many feature requests for it outside of these ELH discussions. You can always share yours with us right here. 😁
In the meantime, could you also set your passing score to 94% to account for the scenario that a user does score a decimal percentage? I'm not sure how many questions and points you have, but I imagine that's a rare scenario?
Hi Ashley, and thanks for getting back so quickly. You're right about the number of people whose score is a few tenths out on the passmark, and if it is 94% we often do a manual override to get them to 95, I had just hoped we could run a rule that automatically does this.
Once you have used JS within the package to Round off the percentage score on screen,I added:
intScore = Math.round(intScore);
to the function SCORM_SetScore in SCORMFunctions.js just after the start of the function and it was correctly reporting 33/67 in a 3 question quiz.
SCORM 2004 would be the same I guess.
TC
Thanks Tony for sharing that here - hopefully it helps Helen and others!
Hi all,
I have tried to make this work on so many occasions and have followed the instructions so carefully but I just never works and I still end up with the decimal point. Would anyone be able to have a quick look at my project file to see what I may be doing wrong? I would be SO grateful!! ( I am using Storyline 3)
I realise I have posted in this thread a number of times so apologies for doing so again but I am just so stuck with this!
Hi Rebecca,
Sorry I can't open a SL3 package.
I have attached a very basic example of this from SL1, the results slide is where all the JavaScript has been added.
Hope that helps.
TC
Thank you so much for your speedy reply! I have now managed to get this to work!! HOORAY!
I had the triggers in the wrong order all this time and that was causing it to not work properly.
Can't thank you enough!
Hey Rebecca, you're going to kick yourself or throw something at me, but your setup is perfect except for one thing. You need to set MyScore to Results.ScorePercent before executing the Javascript. Right now the javascript is looking to change MyScore, then it's injecting Results.ScorePercent into MyScore, thus doing nothing.
You're trigger jumped the gun!
Yep, you read that right. You need to switch the order of the triggers. Just tested it and it works like a charm! (Prepares to duck from a flying stapler)
Kudos on the module btw.
EDIT: Oops, looks like you got it. Excellent
Hi Pauly!
I think every time I have a Storyline problem (I've been a Developer for 4 years now) it always boils down to tiny mistakes like this! Haha SO glad I am now to the bottom of this one, it has been bothering me for over a year now! Can't believe it was just because of the order of my triggers, lesson thoroughly learned! :)
PS thank you, this little module is now one step closer to being sent off - yay!
Awesome Rebecca - glad you got the help you needed! It's the little things that sometimes trip us up, but I'm glad that someone here in the community was able to help!
I see this is from 4 years ago with java etc...any chance I can get rid of the 2 decimal points in an easier fashion now in Storyline 360?
Thanks in advance
Teresa
Hi there, Teresa. Thanks for chiming in! The recommendations in this discussion are the way to go for now. We're monitoring this feature request, and we'll let you know if we make any changes to how Storyline handles score percentages.
I'm chiming in to make this a feature request (be able to get rid of the decimal places)
Crystal, are you able to see where this is sitting in the feature request line up at Articulate? I think I can manage to do what Tony showed, well gonna give it a try. But it looks like Ed Gen submitted a feature request 3 years ago...so curious to see if it has moved up the list it sure would make lives easier. :)
Hey Mike, was curious if your non-javascript solution was similar to Tony's or not, would be curious to know what you did...
no clue. I've been working with SL for a long time, have gone from 1 to 360 and this feature has yet to been added yet it's a common necessity.
Hiya Teresa,
Regardless of the visual design, every results slide has at least one thing
in common , that being the variables that Storyline uses to store and
recall a learner's score. They are:
Results.ScorePercent
Results.PassPercent
The variable used to keep record of the learner's score when completing a
quiz or test in storyline is the Score Percent variable. The score needed
in order to pass is the Pass Percent variable.
Storyline allows us to create variables and store their values so that they
can be recalled at a later point. The variables can have numeric, text, or
true/false value. And in some cases, certain variables are reported to the
LMS.
[image: Var
Thanks Mike, I was wondering if there was an Image of the Variable you did to make the no decimal points work, but it didn't show up for me...:)