Explore the community Forums Lectora Online Lectora Online Questions & Answers Disable Next button until all linked pages visited

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #384997 Score: 1
    Profile photo of Pip Valleley
    Pip Valleley
    Member
    beginner
    intermediate
    profile
    Group Member
    wise owl
    curious george
    contributor
    friend finder
    1 pt
    @pvalleley3585

    Hi, hope someone can help

    I have a page (page 1) with four buttons each of which take users to 4 other pages (pages 2-5) to view a diagram and back to page 1 via a close button on each. This works fine.

    However, I also have a (disabled) next page button on page 1 that I want to become enabled to go to page 6 once all 4 buttons have been clicked but I cannot get this to work.   I’ve tried adding a variable to each button that adds 2 each time it is clicked and an onshow setstate action (to a text box on page 1) if variables 1, 2, 3 and 4 are greater than one 1 to enable the next button but the best I can do is enable it by just clicking one button not all 4.   Can anyone help?

    Thanks

    Pip

    This post has received 1 vote up.
    #385000 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
    74 pts
    @wheels

    Hi, you should be able to do this without using variables.  You would make your next button “initially disabled” in the properties and then add an On Page Show -> Set State -> Enabled action that conditionally runs only if those pages are completed.  See the attached screenshot….

    • This reply was modified 2 years, 8 months ago by Profile photo of Joe Wieloch Joe Wieloch.
    Attachments:
    #385005 Score: 0
    Profile photo of Pip Valleley
    Pip Valleley
    Member
    beginner
    intermediate
    profile
    Group Member
    wise owl
    curious george
    contributor
    friend finder
    1 pt
    @pvalleley3585

    Hi, At the risk of sounding really stupid, how does it know this page has been completed?

    Pip

     

    #385058 Score: 0
    Profile photo of Pip Valleley
    Pip Valleley
    Member
    beginner
    intermediate
    profile
    Group Member
    wise owl
    curious george
    contributor
    friend finder
    1 pt
    @pvalleley3585

    This solution changes the state of the next page button when any one of the four buttons is clicked. I need all four to have been used before it changes the state.

    Regards

    Pip

     

    #385130 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
    74 pts
    @wheels

    Hi Pip,

    Your question is perfectly valid, the help overview is pretty good on this ( Click her for help on Page Tracking )

    If you add 4 lines in the conditional dialog, one for each page, and the “All conditions must be true” is set at the top of the dialog then it should only enable when all four pages have been visited.

    – Joe

     

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

You must be logged in to reply to this topic.