Explore the community Forums Lectora Lectora Questions & Answers Issue with a Click to Reveal Variable

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #430520 Score: 0
    Profile photo of Anthony Mansfield
    Anthony Mansfield
    Member
    beginner
    intermediate
    picture perfect
    friend finder
    curious george
    wise owl
    contributor
    1 pt
    @amansfield8753

    I’ve created a page where learners need to click on 11 different buttons to advance to the next page. They can click the buttons in whatever order they want. After a learner clicks one of the buttons a check mark will appear beside the button to let the learner know they don’t need to click on it again.

    The issue I’ve ran into is if the leaner decides to click on the 10th or 11th button first then a check mark will appear beside that button as well as the first button (which they have not click yet).

    I have set the Actions as the following….

    Show: Check 10

    Conditions: IF

    Variable: var_Pg7_CTRStatus

    Relationship: Contains

    Value: _10

     

    Show: Check 11

    Conditions: IF

    Variable: var_Pg7_CTRStatus

    Relationship: Contains

    Value: _11

    Can anyone suggest a way to keep the first check mark from appearing until the learner clicks on the first button?

     

    Thank you,

    Anthony

    #430526 Score: 0
    Profile photo of Adam Cain
    Adam Cain
    Member
    beginner
    intermediate
    profile
    picture perfect
    wise owl
    friend finder
    Group Member
    curious george
    contributor
    20 pts
    @cainam

    maybe instead of ‘contains’ try ‘equal to’?

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

    When you click and add “_10” the variable would also contain “_1”. In most cases like this it’s easier to not use numbers. Just add “a” for the first and “j” for the tenth to have unique values for each button.

    This post has received 2 votes up.
    #430639 Score: 0
    Profile photo of Anthony Mansfield
    Anthony Mansfield
    Member
    beginner
    intermediate
    picture perfect
    friend finder
    curious george
    wise owl
    contributor
    1 pt
    @amansfield8753

    I appreciate the feedback, Adam.

    Thanks Tim! This morning I used _010 and _011 and was able to make it work.

    #430737 Score: 0
    Profile photo of Joe Wieloch
    Joe Wieloch
    Moderator
    beginner
    intermediate
    friend finder
    contributor
    LUC16 Attendee
    verified member
    wise owl
    LUC17 Attendee
    advanced
    picture perfect
    53 pts
    @wheels

    I know a lot of authors will use a delimiter at the start and end for these types of conditions.

    I just did an interaction where I used:

    !Q1! !Q2! … etc

    Then when comparing or doing a modify variable ‘add’ or ‘subtract’ I would always use the complete item

    if contains !Q1! or add !Q2! or subtract !Q100! etc

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

You must be logged in to reply to this topic.