As is the subject title, is there a way for the built-in, or custom button, in the player to trigger a custom menu from the Master Slide?
I had thought that I saw something like this some time ago, but have been able to find it again. I think I recall the use of javascript to call some code in the story...
Russell... I have the menu up and running but I have a slide with audio on the main slide and questions on 5 layers with a show layer for the first question when the timeline starts; 1.7 Listening 1. When I call the menu, it sets the slide to the base layer....help?
The story is kind of large...sorry....but I was worried that if I stripped it down, it would remove some functionalities....
This worked with the modules with open-ended questions; Text input.
My other modules have radio buttons across many layers on each slide and
the 'reset to initial state' removes their choice and empties the
variable...
Any ideas about a workaround for this????
14 Replies
Take a look at this project.
There is a number variable called viewMenu.
The custom button on the player executes javascript that toggles the viewMenu variable between 0 and 1.
Then there are triggers to show or hide the Menu layer on the master slide when that variable changes.
Exactly what I was searching for!!! Actually, I am getting closer with my very limited understanding of code.
Maybe one day, I will not have to ask so many simpleton questions....
Thank you!!!!
Russell... What would I do if I wanted to hide the custom menu button on any particular slide???
Thanks again!!!
Russell... I have the menu up and running but I have a slide with audio on the main slide and questions on 5 layers with a show layer for the first question when the timeline starts; 1.7 Listening 1. When I call the menu, it sets the slide to the base layer....help?
The story is kind of large...sorry....but I was worried that if I stripped it down, it would remove some functionalities....
Thank you again!!!!!
For the properties of your menu layer, you will want to uncheck the 'Hide other slide layers' option.
Try using this javascript to hide it:
if (document.getElementById("link-left-0")) {
document.getElementById("link-left-0").style.display = "none";
}
if (document.getElementById("link-0")) {
document.getElementById("link-0").style.display = "none";
}
And this to show it:
if (document.getElementById("link-left-0")) {
document.getElementById("link-left-0").style.display = "block";
}
if (document.getElementById("link-0")) {
document.getElementById("link-0").style.display = "block";
}
Russell..........You Da Man!!!
You are truly not a hero, you are a demigod!!!!!
Could I ask one more little thing???? Could the menu be retracted when a user clicks outside of the menu anywhere on the slide....
THANK YOU SO VERY MUCH!!!
Who can I write to brag about your help...?
Try adding a rectangle to your menu layer that covers the rest of the slide.
Add a trigger for on click of the rectangle to set the viewMenu variable to zero.
Then make the rectangle 100% transparent.
This post was removed by the author
Russell...
You wouldn't know how to disable chrome autofill, would you???
https://community.articulate.com/discussions/articulate-storyline/text-entry-fields-staying-on-top-of-layers#reply-682663
Thank you ever so much!!!!!
Russell,
There is a glitch in the menu...
When you navigate from slide 5 to 6 it's ok, but if you use the menu...it
shows the menu on screen and blocks the interaction...
Could you please have a look???
Thank you!!!!
On Slide 1.6 try setting the Slide Properties for 'When revisiting' to 'Reset to initial state'.
I also suggest that you change your settings for publishing to HTML5 Only.
Russell...thanks again for all your help!
This worked with the modules with open-ended questions; Text input.
My other modules have radio buttons across many layers on each slide and
the 'reset to initial state' removes their choice and empties the
variable...
Any ideas about a workaround for this????
THANK YOU!!!!
Instead of using Reset to initial state on slide 1.6:
1. Change the Menu layer slide property for When revisiting to 'Reset to initial state'.
2. For each button in the menu add a trigger that sets viewMenu to 0. Make sure this is the first trigger before the Jump to slide trigger.
Thank you Russell!!!!!