Skip to main content
Known Participant
July 26, 2014
Question

add advanced action to submit button and setting different objectives score for the same course

  • July 26, 2014
  • 3 replies
  • 1174 views

Hi, i would like to increase a counter in a quiz slide when the user press the submit button, using advanced actions.

It's like if the submit button is somehow inhibited from certain options, and i cannot find how to add an advanced action to it.

what i need, is to allow unlimited attempt until the user selects the right answer. each time the user click on submit, a counter increases by one. When user finally select the right answer, we read the counter value and assign a different score, depending on the attempt (for example: 1st attempt=20 points, 2nd attempt=10 points, 3rd attempt=0 points)

After that, i need to save all score obtained for a certain group of quiz slide separately from the "main score" (i think the main score is stored in cmi.objectives.0.score)  to have partials scores for a course. I examined the "advanced interactions" panel and i noticed that for each quiz slide there is a specific interaction ID and each quiz slide is associated typically to the same Objective ID. What i need is to associate different groups of slides to different Objective ID's.

In Storyline i was able to do this by passing to the lms a cmi.objectives.n.score (where "n" is the place in the objectives array) and i did it by executing a javascript on success for each question slide. (each javascript added the score of previous slides in the same group to obtain the total score of the group to be passed to lms with a specific function).

examining captivate scorm functions in the published scormdriver.js i found the following function

function SCORM_SetObjectiveScore(strObjectiveID,intScore,intMaxScore,intMinScore)

so i think it can be done the same way in captivate executing javascript in the right way.

Is there also an easier solution to write different scores to different obectives in the same course?

many thanks for any help!

    This topic has been closed for replies.

    3 replies

    Known Participant
    July 28, 2014

    Thank you both for answering. A pity that developers decided to block editing/adding script to buttons in "normal" question slides, that would be really useful for customization. I am trying to build a custom question slide using Lilybiri tips, i will need to use custom javascript to pass score to LMS writing on cmi.objectivesm but still I didn't find any basic reference to do that (which js command must be used to estabilish/close connection with LMS)

    Also, is there a way to change radio buttons used in multiple choice question slide? If not, It means i am forced to build a custom question slide each time i need different aspect for a button/object on the slide, is it right?

    thank you

    Lilybiri
    Legend
    July 26, 2014

    Have a look at:

    Question Question Slides in Captivate - Captivate blog

    Question Question Slides - Part 2 - Captivate blog

    Indeed, Submit button is part of the Question slide, not a normal button. You can add a custom shape button, but it will never replace what happens when the Submit button is clicked: validation of the answer, showing captions, adding to score etc. Making the score depending on the attempt is not possible with default functionality, it is possible with custom question slides, but then the reporting to LMS is another issue. You should try to do it by JS, or if you only need SWF-output you could use the Master widget by InfoSemantics.

    Link score to attempts in Custom questions - Captivate blog

    Lilybiri

    RodWard
    Community Expert
    Community Expert
    July 26, 2014

    You cannot add advanced actions to the buttons on quiz questions in the same way you can add them to other interactive buttons in Captivate.  With quiz questions you can only assign actions to the slide's ON Success or On Last Attempt events.