Forum Discussion

TarynPierce's avatar
TarynPierce
Community Member
1 year ago
Solved

Storyline States

I am running into an "Issue" that I haven't noticed before. 

I posted a small screenshot below. I have 3 buttons with Normal, Visited, Disabled states. Visited has a Checkmark, Disabled is the Lock image. 

When starting on the slide button 2 and 3 are in disabled state and can't be unlocked until the button before is clicked. So Blue Button one is clicked, It shows visited state and a layer appears. It also unlocks Blue button 2. When Button 2 is selected, the state changes to visited, a different layer appears, and Button 3 is unlocked. 

My "Issue" is when All three buttons are unlocked and I go back to select a button to view the layer, it removes the previous visited state. What am I missing? Shouldn't the visited state stay active once it's visited?

  • Based on your description and the video, I assume you have a trigger that says "Change the state of Blue button 2 to Normal when the user clicks Blue button 1" (or something like that. That trigger is what reverts a button back to the normal state if the user re-clicks the previous button.

    To prevent that from happening, you need to add a condition to the "change to Normal" triggers. For example: "if the state of Blue button 2 = Disabled." Or "if the state of Blue button 2 ≠ Visited." Then the trigger will only run if the condition is met.

4 Replies

  • Based on your description and the video, I assume you have a trigger that says "Change the state of Blue button 2 to Normal when the user clicks Blue button 1" (or something like that. That trigger is what reverts a button back to the normal state if the user re-clicks the previous button.

    To prevent that from happening, you need to add a condition to the "change to Normal" triggers. For example: "if the state of Blue button 2 = Disabled." Or "if the state of Blue button 2 ≠ Visited." Then the trigger will only run if the condition is met.

  • NancyHampson's avatar
    NancyHampson
    Community Member

    Hi Judy.  I have this exact situation going on and I don't understand the solution.  This is what I have now for the trigger.  The first button on the screen, upon revisit from the prev button on the following slide, then changes back to the "normal" state.  

    Can you help me understand what should be added to this trigger?

    • JudyNollet's avatar
      JudyNollet
      Super Hero

      NancyHampson​: As I understand your issue, Button 1 is reverting to Normal when the user revisits the slide. 

      The trigger shown in the image you provided controls the Next button, so that trigger doesn't impact the state of Button 1. 

      Best guess: There's a trigger that changes Button 1 to Normal when the timeline starts on the slide. A “when timeline starts” triggers runs every time the user reaches the slide—even if the Slide Properties are set to “Resume saved state.” If you don’t want the trigger to run in some situations, you need to add conditions to the trigger.

      Other than that, without seeing all the programming troubleshooting would just be wild guesses. Someone might be able to solve the issue if you upload the .story file. Here are the best practices for doing that:

      • Only include slides that are related to the problem.
      • Be sure objects, layers, motion paths, and variables have meaningful names.
      • If there is proprietary content, replace or delete it. For example, replace proprietary text with “ipsum lorem” text.