Explore the community Forums Lectora Lectora Questions & Answers Variable Trouble, Need Help!

Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #298168 Score: 0
    Profile photo of Jawad
    Jawad
    Member
    beginner
    intermediate
    contributor
    friend finder
    wise owl
    1 pt
    @Jawad

    I have four Correct/Ticks (images) that appear seperately on screen. Once all four Correct/Ticks appear, a popup (image) should than appear. My attempts to work this have not been successful.

    I created the following actions on each of the Correct/Ticks:

    1. Show > Modify Varible > Popup, Add To Varible, 1

    2. Show > Show > Popup > IF, Popup, Equal To (also tried ‘Contains’), 4

    #298171 Score: 0
    Profile photo of Jill Searcy
    Jill Searcy
    Member
    beginner
    intermediate
    friend finder
    contributor
    wise owl
    picture perfect
    1 pt
    @jsearcy

    It looks like to me that you have an issue not with your variable but on how you trigger your pop up. If each tick does not show up in the same order (say they appear based on a learner action), I would add the check for the variable value action to each tick to trigger the pop up if the variable equals four (your item #2).

    #298173 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    333 pts
    @ssneg

    This sounds like it has to work. Can you share the title/page?

    #298220 Score: 0
    Profile photo of Jawad
    Jawad
    Member
    beginner
    intermediate
    contributor
    friend finder
    wise owl
    1 pt
    @Jawad

    Here’s the attachment.

    The Popup image is initially visible for your benefit, it’s the group with all the text and icons.

    • This reply was modified 3 years, 4 months ago by Profile photo of Jawad Jawad .
    #298230 Score: 0
    Profile photo of Jill Searcy
    Jill Searcy
    Member
    beginner
    intermediate
    friend finder
    contributor
    wise owl
    picture perfect
    1 pt
    @jsearcy

    Jawad,

    Two things: on your page, there was no way to process the question. The onload action checks the variable before the question is processed – which works if the learner returns to the page, but not on the initial page load. I added a process question button and it worked fine.

    #298241 Score: 0
    Profile photo of Jawad
    Jawad
    Member
    beginner
    intermediate
    contributor
    friend finder
    wise owl
    1 pt
    @Jawad

    Sorted now! Batman came and helped me…

    #298243 Score: 0
    Profile photo of Bruce Wayne
    Bruce Wayne
    Member
    @bwayne3246

    Sorry it took so long… was too busy fighting off superman!

    I’M BATMAN!

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

You must be logged in to reply to this topic.