Conditions on custom player buttons
Jun 05, 2018
By
Nick Gidman
Hi,
I am setting up a course where I would like to use the new HTML player for SL360. But I am unable to control when the learner is allowed to click on the custom buttons I set up. I have added two buttons which jump to a slide, with the condition that a T/F var is true. But this then stops the button working all together. The vars are set to true as default.
Anyknow know a workaround? Or what the issue is.
I have attached the output file.
16 Replies
The output file doesn't really show much. Can you share the story file?
I did think that after i uploaded it. Please see the story file.
Didn't realize you were using JavaScript. You'll need to connect with someone that knows how to program with it. I'd repost the question and put JavaScript in the title to get their attention.
The Javascript can be taken out. Thats just to show the buttons as they are connected to "sidebar starts collapsed" if you remove this and untick this option it will still be an issue.
Well, based on the file you shared, I don't see any conditions or use of the variables other than being referenced in the text box on slide 1.1
There are no triggers on the slides that adjust variables. And no triggers to do anything on the condition the variables are a specific value. That's why it's not working.
I'm not sure you understand the problem. I will show you with some screenshots.
When you add the condition to the button, the trigger no longer works. As you said the var is constant, so the condition is always true, so the trigger should always work.
I see what you're saying. I was looking for buttons and not player tabs.
It works without the conditions. Let me do some research to see if having the trigger on a player tab has some constraints because of the player.
I'll see what I can dig up.
Spoke to our support team. Apparently it's a bug, so we filed a bug report.
Thanks for your support on this, we got there in the end! I guess there is not estimated time for a fix on this?
Hi Nick
just chiming in here - do you need to use the condition in the trigger?
I want to be able to control when the buttons are active. As you are unable to do this like you can the next/back buttons I was going to use the condition for this.
Not tried this but have you tried a javascript trigger instead to increment a variable
And then add a slide master trigger to jump to slide with your condition, may work
Cheers Phil, that worked. Nice little work around until they fix the bug.
Here is the file incase anyone else wants it.
Thanks, Nick for sharing the file! I can include that in the report filed with our team, and it's always helpful to have more examples as they look into this issue.
Thanks for sharing, Nick! I ran into the exact same issue and your javascript trick worked like a charm.
This discussion is closed. You can start a new discussion or contact Articulate Support.