Explore the community Forums Lectora Lectora Questions & Answers Question Variable Initial Value?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #383779 Score: 0
    Profile photo of The AV-ator
    The AV-ator
    Member
    advanced
    contributor
    beginner
    intermediate
    friend finder
    wise owl
    curious george
    profile
    picture perfect
    Group Member
    12 pts
    @TheAv-ator

    Does anyone know what the initial value of a question variable is?

    I have random questions sprinkled into my course at the end of each section (questions, not an “official” test/quiz). As the Reset Test/Quiz action does not work on specific questions, under certain circumstances I need to reset the questions. My guess is I need to reset the variable for the questions.
    1. is that assumption correct?
    2. what do i need to reset the variable to, to make that happen?

    thanks

    #383783 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    Can’t you just “Reset question” ? The action is only available on pages that have a question.

    #383811 Score: 0
    Profile photo of The AV-ator
    The AV-ator
    Member
    advanced
    contributor
    beginner
    intermediate
    friend finder
    wise owl
    curious george
    profile
    picture perfect
    Group Member
    12 pts
    @TheAv-ator

    We saw that after I posted this, but the intent was to do it for everything at the beginning of the course – just to reset all the quiz questions when I reset any other statuses I need to. The only caveat is that I can’t run the Reset All Variables action, as it would erase variables they entered into the previous page.

    I guess I’m leery of running it on the page as it would run off of the On Page Show and could possibly reveal the last answer before being reset. Should I just not be leery of this??

    #383823 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    You can try to set the variable to its initial value, which is “~~~null~~~” (without the quotes), although I’m not sure, exactly when the checkboxes would be reset. Probably On: page show anyway.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.