Forum Discussion
Going back to the last saved position of a slider
- 4 months ago
Thank you so much Judy, my problem is solved!
Thank you for your answer Judy. And sorry for using the wrong words, I wanted to be as clear as possible but I guess I failed... 😅
You'll find my .story file below. It's in French, by the way, but text isn't important.
I kept step 8 as an example of the problem.
What I meant is that, when I go to an other slide (process_etape8), and then go back to the slide with the slider (process_curseur), the slider thumb stays on the 8th position but I see the layer of the 1st position. When I'm on "process_etape8" and then go back to "process_curseur", I want to see "calq_etape8".
Thanks for taking the time to clean up your .story file to only include what's needed for troubleshooting. And thanks for clarifying that the layers had buttons to jump to other slides. I had misunderstood it as jumping to other layers on the same slide.
So here's what I found by looking at your file.
Layer 1 shows when the user returns to the slide because there's a trigger to show that layer when the timeline starts.
- The fix: Add a condition to the trigger so it only happens if the value of the slider's variable = 1. (Note: In my edited version of the file, I also changed the trigger to happen when the timeline of the slide starts, rather than the timeline of the slider.)
The Slide Properties were set to "Automatically decide" when the user revisits. That's a great options for question slides that use built-in functions. But for custom interactions, the program doesn't always make the best decision. It was deciding to not show any layers on revisiting.
- The fix: I set the Slide Properties to "Resume saved state."
Those changes are done in the attached file. I also added a trigger to show layer 1 when the slider moves if the value = 1. That allows someone to return to step 1 if they want to.
One more note: there's a trigger that changes the continue/next button to Normal when the slide moves if the value = 10. That means the button will be Normal even if the user immediately moves the slider to 10 (without stopping at the other numbers). If you want to require the user to view all the steps, I suggest using variables to track their progress. You can find details in the demo file for this post Controlling the Next Button.
- SophiePILLOT4 months agoCommunity Member
Thank you so much Judy, my problem is solved!