Explore the community Forums Lectora Lectora Questions & Answers Can you make an action on one page execute on another page?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #371037 Score: 0
    Profile photo of Janet Waterstradt
    Janet Waterstradt
    Member
    beginner
    intermediate
    picture perfect
    profile
    curious george
    wise owl
    friend finder
    Group Member
    contributor
    @Waterstradtj

    Hi:

    I want to display 10 images on page 1 of a chapter. When a learner clicks an image, I want that image to show on the last page of the chapter. Is this possible to do? If so, how would I go about it?

    Thank you in advance for any help you can provide.

    #371045 Score: 1
    Profile photo of Stan Miller
    Stan Miller
    Member
    beginner
    intermediate
    LUC16 Attendee
    wise owl
    contributor
    curious george
    friend finder
    LUC17 Attendee
    35 pts
    @smiller7502

    Sure, Janet! There may be multiple ways to approach this, but here’s what I would to:

    1. Create a variable called something like ChosenImage, with the initial value of 0 (zero).
    2. Add an On Click action to the first image on page 1 to set the ChosenImage variable to 1.
    3. Copy that action to the other images on page 1.
    4. Update each copied action to set the ChosenImage variable to 2 on image 2, 3 on image 3, on up to 10 on image 10.
    5. On the last page of the chapter, add an On Show action to show image 1 if ChosenImage is equal to 1.
    6. Copy that action and paste it nine times so you have 10 On Show actions.
    7. Update each copied action to show image 2 if ChosenImage is equal to 2, image 3 if ChosenImage is equal to 3, etc.

    Good luck! Post back if you run into any trouble.

    This post has received 1 vote up.
    #371074 Score: 0
    Profile photo of Janet Waterstradt
    Janet Waterstradt
    Member
    beginner
    intermediate
    picture perfect
    profile
    curious george
    wise owl
    friend finder
    Group Member
    contributor
    @Waterstradtj

    Thank you so much! It worked and it was simpler than I thought it would be. Variables can be so intimidating!

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

You must be logged in to reply to this topic.