Skip to main content
Inspiring
December 26, 2017
Question

Creating multiple choice quiz question from scratch. Need toggle choices and decrement non numeric value!

  • December 26, 2017
  • 1 reply
  • 380 views

The title is probably very confusing. I HATE captivate responsive quiz slides. They are really a disaster and very hard to make work. So I created my own.

I have a multiple choice question with 4 choices and I want 3 of them to count as a correct answer.

I created a nice toggle so that the question changes state when clicked and goes back to normal when clicked a second time. I assigned a variable(MC2_Answer)  with the letter corresponding to the choice. When the click "A" an A is put in the variable using "increment". Since this question needs 3 of 4 answers chosen I planned on using "contains" in an advanced action to show a correct smartshape. So correct answer is A, B, and D. if the learner chooses these then A, B and D are added to the MC2_Answer variable.

So far it works perfectly. What I can not figure out is that when the learner clicks on "A" a second time to un-choose it, how do I remove the A from the variable. decrement does not work to remove the "A" from the variable.

    This topic has been closed for replies.

    1 reply

    RStedmanAuthor
    Inspiring
    December 26, 2017

    OK As usual I post a question then out of the blue I figured it out. I was making it way to complicated.

    Each choice (A,B,C,D) have this action. MC2_1, MC2_2 and MC2_3 variables are for the correct answer and have "0" as there default value MC2_3 variable is not the correct answer so its default value is 1

    Then the submit button uses this action


    Lilybiri
    Legend
    December 26, 2017

    Please, try to use the Preview button in the Advanced Actions dialog box: it is the first button in the top control panel, looks like an arrow. That way you can show all decisions in an advanced actions at once, much easier to understand.