Forum Discussion
JerryBeaucaire
4 months agoCommunity Member
Javascript question - Hide the "Next Module" button in Litmos.
We use Litmos as our LMS. We want users to be able to use the convenient "Next Module" button in the upper right corner. But this can also be used to "skip" to the next module, which we don't want....
AndrewHanley
4 months agoCommunity Member
Hi Jerry,
How I would do it is the last thing you tried "unsuccessfully".
The only problem was you passed it the wrong <id>
The ID is here:
<a class="m-nav-item pull-right hidden-xs" href="#" onclick="scormPlayer.next();" id="module_Next">
and shows as "module_Next", so I think this line should get you the reference you need:
let nextmodule = document.getElementById("module_Next");