Forum Discussion
Create a button to reset the slide?
Hi Julie,
In version 2 of my Storyline file I now have an additional variable, which I have called SliderStop. This is set to the value of Slider1 when the slider is moved. I then use this variable to do a comparison with the value of Slider1, if the slider is moved a second time, to check that the new Slider1 value is greater than the last value set for SliderStop (i.e. the slider has been moved to the right). If Slider1 has decreased (i.e. the slider has been moved to the left) then the value of Slider1 is reset to the value of SliderStop.
This will prevent the user accessing any of the options to the left of their original selection without first resetting the slider. However, they will still be able to continue to the right. If you only want them to be able to select one option before having to reset, that can easily be achieved.
What you will find is that, although the value of Slider1 will not change if the slider is moved to the left, the button will still move. However, if the user tries to move the slider the whole way back to zero, it will automatically reset to it's previous position.
I hope this is what you were looking for. If you have any queries just post them here.
Related Content
- 3 months ago
- 2 months ago