Forum Discussion
Can slider still be dragged in disabled state?
I added a disabled state to a slider hoping it cannot be dragged until a variable changes. But it can still be dragged to another step as if this was not disabled at all? If this is what it is, is there another way to prevent the slider from being dragged until a variable changes. I'm doing a crude solution by masking (set to transparent) the knobs and hiding/unhiding the mask based on the variable. It's messy and the change state trigger for the slider would have been more efficient. Thank you for any thoughts on this.
21 Replies
Hi Celito,
Did you add it to the slider icon element or did you set up a state for the entire thing? Perhaps you could share what you've got set up here so that we could take a look and offer specific suggestions.
- celitoCommunity Member
I added a disabled stare to the entire thing, meaning the slider just because it was available. I would have wanted to disable just the knob or handle. Did I miss something?
Sent from Yahoo Mail on Android
- MichaelHinzeCommunity Member
I never had any luck using a disabled state on a slider. You can make it LOOK disabled, e.g. greyed out, but in my attempts it was still draggeable. I resorted to putting a transparent shape over the slider and hide/show that shape depending on some variable value. However, that will not work as long as you are moving the slider, it'll only kick in once you release the slider thumb.
Hi Celito,
I haven't played a lot with sliders, so was just looking to see more of what you were *attempting* to set up. :) It sounds like Michael's idea will work though.
- celitoCommunity Member
Hello Ashley and Michael,
Thank you for your comments. It was a case of having two adjacent objects, A and B (as in the beads of an abacus). If A were the left-most object, B cannot slide left (Step 1) until A slides left first, otherwise B will be jumping over A. The same conditions exist when sliding back to the right (Step 2), B moves first. The objective was to immobilize the blocked object before the blocking item moves first. Since it was possible to add a disabled state to sliders, I though this was a simple "change-state...when-slider-moves" trigger, that is why I asked the question because the slider still moves even at the disabled state.
I did Michael's idea and it accomplishes the behavior I wanted to achieve. I just had to put up with so many masks to hide/show. I still would have wanted the disabled state though. Thanks once again.
- PhilMayorSuper Hero
Agree with Michael here disabling a slider is hit and miss, I have achieved once, if you are dragging a slider is seems to be impossible to disable it.
- KevinMcGrathCommunity Member
Is this still the case?
I have a slider on a layer that is hidden but it can still be moved and I need to disable it. Setting the layers to not allow things to be clicked on other layers is not an option so really I need the slider disabled.Hi Kevin,
I'm happy to chime in! I ran tests on a sample Storyline project using the latest version (Build 3.77.30587.0) and confirmed that hidden or disabled sliders cannot be dragged as expected. I attached my sample project file for your reference.
I just had some clarification questions to understand your experience better:
- What Storyline version are you using? Here's how to update to the latest version if needed.
- After confirming that you're working on your local drive, have you tried these steps to fix possible installation issues?
We'd be glad to investigate further if the problem persists. You may share your Storyline project here or privately in a support case so we can look at your setup. We'll delete it when we're done!
Thanks Celito for sharing the update - and I'm happy to hear you've found a method to make it work, even if it wasn't ideal.
- RenMllerCommunity Member
Hello everyone,
I have just had the same issue with a slider being in the state "Disabled" but still draggeable. What I did as a workaround:
I replaced the slider with an image of the slider and with some triggers I reached my goal:
1) User drags slider to certain value and receives either feedback right or wrong.
1) a) On the start page, the image of the slider has the state "Hidden".
2) On the feedback layer, the user clicks a cross to close the feedback panel.
2) a) When clicking the cross, I trigger the following two things:
--> Change state of "Slider" (the slider itself) to hidden
--> Change state of "Slider_grahic" to normaö
Thus, the user cannot drag the slider any more when returning from the feedback panel.
Hope this helps / inspires:)
But anyway, it would be more then useful if the slider would really be disabled, when the state is "Disabled".
Would this be some sort of a feature request?
Regards
René
- DanielleButts-bCommunity Member
This was a brilliant idea
- ChristiePollickCommunity Member
Hi, Rene -- Thanks so much for sharing your workaround here, and you are welcome to share your thoughts or idea with our Product Development team using this feature request form. :)
- StephenLunn-289Community Member
I know this is an old post, and the workarounds are all great, but the 'bug' as I see it, is still there: disabling the slider with the built-in trigger doesn't work.
- MariaCSStaff
Hi, Stephen.
Thank you for reaching out!
We have a bug reported where the Slider's disabled state is not working.
I've connected this discussion to the bug report, and I'll be sure to come back to update you when I have some news.
Related Content
- 7 months ago
- 9 months ago
- 5 months ago