Slider's Start and End

Hi Heroes,

I'm interested to know how to adjust the Start and End Properties of a slider by a variable controlled by the user. My question is not related to updating the value of the slider by a variable, it is about the min and max range of the slider's properties in the Design tab (image attached).

 

If it is not possible from Storyline itself, is it possible from outside like using JS or other solutions?

Thank you.

6 Replies
Walt Hamilton

Are you intending that the thumb not be allowed above or below certain limits? That is certainly doable, but if you want the thumb to be allowed to still go to the end, and have a different value than before, I'm not so sure about that. For one thing, that would also involve changing the total number of steps in the slider, as well as the distance between steps. That's recreating virtually the entire slider, and I don't know how well that would work. I certainly don't know how you can do it, but I don't know everything, and someone else may know how.

Ali Al-Shufafa

Thanks a lot for the reply.

Let me explain what I'm trying to do, perhaps there is a workaround. It's a simulator for two objects: parent and child. The parent holds the child but the child move. Parents can move and so does the child but with limits set by the parent. As the parent moves (its slide moves), the child is affected by a factor that should affect its Start and End.

The temporary solution that I've made is to use the animation to relocate the child as the parent moves (as the user clicks on a button to move the parent).  The big problem with animations is again there is no numeric control that one can adjust by triggers.

Ali Al-Shufafa

Walt, it is very kind of you to take the time to build the file. Thanks a lot.

The file serves the purpose for small steps (4 or perhaps 10). In my case, it is very wide (around 25 parent steps) and that is why I thought of using a variable directly responsible for changing the Start and End, instead of layers.  

I've edited your file and uploaded it. I hope your solution would help others and my edits may help the potential users to understand the logic behind it.

The community here is awesome. 

Modassar Warsi

After publishing my storyline file I was trying to find the variable for Slider End. I am not sure but in the published folder I could find something that might be useful.

{Published Folder} > html5 > data > js

"dragpath":{"startvalue":0,"endvalue":10,"increment":1,"snap":true,"liveupdating":true,"bindto":"_player.Slider1"

If we can dynamically change the endvalue using JS, I think, we will achieve what we are trying to do.