Forum Discussion

CameronMathews's avatar
CameronMathews
Community Member
2 months ago

Set slide as visited if a button is clicked

Hi all,

I have an interaction that functions as a selection screen where if a user doesn't know what a topic is, they can click one button that takes them to a new slide, but if they do know what the topic is, they click another button and they are taken to the slide that continues the course. Is there any way to set the other slide to be "visited" if the user clicks the button that skips the explanation?

  • Technically, if a slide is skipped, you can use JavaScript to add a checkmark in the menu to visually indicate that the slide has been visited or viewed. However, this will not be reflected in the "Menu.SlidesViewed" and Project.SlidesViewed built-in Storyline variables. I'd suggest creating a custom variable (e.g., skipped = False)  with two buttons (e.g., Skip and Next). If the learner presses 'Skip,' set skipped to True and jump to the next slide. On the next slide, create a trigger: 'Jump to next slide when the timeline starts on this slide if skipped is True.' This way, the learner will navigate to the 'skipped' slide but will immediately jump to the next slide if 'Skip' was pressed on the previous slide. This approach ensures that the 'skipped' slide's 'viewed' status will be reflected in the menu and properly accounted for in the Menu.SlidesViewed and Project.SlidesViewed built-in Storyline variables.