Skip to main content
Participant
March 20, 2023
Question

Is there a way to send a score on slide exit without using button? Is there a javascipt for it?

  • March 20, 2023
  • 1 reply
  • 485 views

Hi, I'm currently on a project on which the LMS needed a score to be sent to have a bookmark on the slide (so that the user can progress on the last slide that they have accessed). the content of the e-learning module is a slide video distributed across slides. Is there a way to send the score to a LMS on slide exit using javascript? thx b4

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    March 20, 2023

    Why would you need a score for bookmarking? Bookmarking is set on by default for most LMSs when you have activated Reporting under Quiz Preferences. But the criterion doesn't need a score at all. Resume data will be sent to the LMS and they'll take care of the bookmarking.

    Moreover how would you create a score since you just have a passive video? Is there no possibility to have the LMS take care of accepting a video, setting up a rule that this video needs to be viewed? It is not at all a good idea to use a cptx project with a sequence of passive video slides, that is not the goal of an eLearning course.

    jinomzAuthor
    Participant
    March 20, 2023

    yes that's right, when I tested in scorm cloud it does like it should (automatically bookmarks) but somehow in the LMS that I'm currently engaging with (my client moodle based-custom LMS) it needed a score submission to register the bookmark. And also currently the LMS requires video content to be packaged in SCORM. It would be great if there is a workaround, before I resort to making a button that sends the score at the end of every slide (requires the user to click every 2-3 minutes) and to continue the video

    RodWard
    Community Expert
    Community Expert
    March 20, 2023

    OK so what might be happening here is that your LMS might have been customised to work a little differently to a normal SCORM LMS.  As Lieve states, an LMS does not normally require a scored interaction just to record that a user has visited a slide and then suspended the module.  (The fact that a "gold standard LMS" like SCORM Cloud can bookmark without scores on each slide proves this.) But if your custom-modified LMS needs a score to work then your proposal to add a scored button to each slide would be one easy way to give the LMS what it wants.

     

    If you are a wizz with JavaScript then you could certainly program a JS solution to send scoring on each slide.  Alternatively, if you do NOT know JavaScript then the CpExtra HTML5 widget also has a way to manipulate score values sent to the LMS and it could be triggered via the On Slide Enter event on each slide.

    https://widgetking.github.io/cpextra/variables/command.html#xcmndscore


    If you decide to go down that path, would suggest you get in touch with Tristan Ward the creator of the widget by logging a question on his website here: https://www.infosemantics.com.au/custom-javascript-programming/