Skip to main content
Inspiring
March 6, 2016
Answered

Scoring radio buttons - true/false question

  • March 6, 2016
  • 2 replies
  • 879 views

Hi everyone, this seems so simple, but I spent all yesterday looking for an answer.  Part of the problem is that all the helpers I've found are about much older versions of Captivate.

I want to create a list of 10 true/false questions on the same slide.  It's important that they be on the same slide.  Therefore, as i understand it, I can't use the regular quiz slide, but I need to use the radio button widget.  How can I score these - ex. 7/10?  Working w/ variables is really confusing to me.  Thanks for your help.

Bill

    This topic has been closed for replies.
    Correct answer Lilybiri

    A radiobuttons interaction has only ONE variable that can be associated! Moreover you have to define that variable in Project, Variables. I think you are indeed trying to do something that you don't understand at all. I wrote several blog posts about that interaction/widget. Have a look at the one I referred to in the former post (about Tips for widgets).

    I recommend first to try this out with less variables.

    1. Define the variables one by one in Project, Variables: v_one, v_two, v_three
    2. Insert the radiobuttons interaction first time, and type the name of the first variable v_one
    3. Do the same for the two other radiobuttons interactions, associate them with v_two and v_three
    4. Write out the conditional advanced action
    5. Insert a button (can be a shape button) to trigger that advanced action

    This very old post describes the meaning of variables

    Curious about Variables in Captivate? - Captivate blog

    This one about using variables in actions:

    Curious about Variables in Captivate? - Captivate blog

    2 replies

    Lilybiri
    Brainiac
    March 6, 2016

    I explained the work flow in this blog post, although it is only for 3 questions you should be able to extend it:

    Tips - Learning Interactions - Captivate blog

    If you were pointing to older blog posts by me (wrote one for the old widget), be sure that not much has changed, except the possibility (for SWF output) to control what is displayed by advanced actions.

    TLCMediaDesign
    Inspiring
    March 6, 2016

    First you need to create variables to assign to the radio buttons. Something like:

    rb1, rb2, rb3, etc.

    insert the radio buttons and type in the variable associated with each. The value of the radio buttons are "True" and "False"

    Create a button to evaluate the answers.

    Execute a conditional advanced action attached to the button. You'll need a variable to increment if the answer is correct. "rbScore".

    You'll need 11 conditions (Tabs). In the first condition:

    if rb1 is equal to "True"

    increment rbScore by 1

    and so on. You do not need to evaluate if "False".

    In the last condition evaluate if rbScore is equal to or greater than 7.

    Inspiring
    March 6, 2016

    Thanks to you and Lilybiri.   I looked at Lilybiri's examples over and over yesterday - just can't seem to get the hang of it.  I may be sub-basic level here...

    So to keep it simple, here's what I did. 

    I inserted a radiobutton widget, and double clicked on it. 

    Next to the radio buttons I typed A and B

    In the Variables box I typed rbA, rbB (I left a space after the comma)

    I added a shape to the slide and made this a button.

    On "Actions", I chose "Execute Advanced Actions"

    Clicked on the folder, chose" conditional actions" and typed the action name "widgetquiz"

    Now - what do I do?

    Lilybiri
    LilybiriCorrect answer
    Brainiac
    March 6, 2016

    A radiobuttons interaction has only ONE variable that can be associated! Moreover you have to define that variable in Project, Variables. I think you are indeed trying to do something that you don't understand at all. I wrote several blog posts about that interaction/widget. Have a look at the one I referred to in the former post (about Tips for widgets).

    I recommend first to try this out with less variables.

    1. Define the variables one by one in Project, Variables: v_one, v_two, v_three
    2. Insert the radiobuttons interaction first time, and type the name of the first variable v_one
    3. Do the same for the two other radiobuttons interactions, associate them with v_two and v_three
    4. Write out the conditional advanced action
    5. Insert a button (can be a shape button) to trigger that advanced action

    This very old post describes the meaning of variables

    Curious about Variables in Captivate? - Captivate blog

    This one about using variables in actions:

    Curious about Variables in Captivate? - Captivate blog