Forum Discussion
Prev and Next button appear after revisit the quiz.
Hi,
This issue still persists with update 7. My setup is similar to Damons and Yangs: I want learners to be able to revisit quiz and survey slides without resubmitting them. The default buttons still reappear in html5. Any progress on this?
Thanks, Ayoub
- PaulDouglas-ed19 years agoCommunity Member
I've been having this issue for some time (SL7 too like yourself) and decided to take a brute force approach which seems to be working well so far.
Rather than having to modify the generated HTML output each time (yuck! Who wants to do that?) I add code in the Master slide:
In the Master slide, I add a trigger to Execute Javascript and add the following code:
// since the Quiz in review mode shows the default SL Prev/Next buttons (SL2 Update 7) we force them to hide
var currentStyle = document.getElementsByTagName('style')[0].innerHTML;
//only modify the style tag the FIRST time
if(currentStyle.indexOf("controls") === -1){
document.getElementsByTagName('style')[0].innerHTML = currentStyle + "#controls{ display:none !important;}";
}
All it does is modify the<style>
tag in the HTML5 output, and adds styling for the #controls<div>
that houses the pesky Storyline default navigation and sets it to hide. I also add a check to only add this style once rather than potentially many times on a new page visit which could lead to trouble.Hope it helps.
Cheers
- SudhakarReddy9 years agoCommunity Member
Dear Paul Douglas,
Thank you for providing great solution to hide controls in review mode. If possible can you please let us know how show the controls once we exit from review mode.
Look forward for your great solution.
Regards, S
- StevenMcAneney9 years agoCommunity Member
Just tried this javascript in the question master Paul, worked brilliantly!
Thanks!I've sent a feature request to Articulate to include a check box in the template settings that would execute this script. Wouldn't that be nice?