Forum Discussion
Trouble with Hotspot and Scrolling Panel
- 18 days ago
Please find the attached .story file. To keep this script reusable, I recommend naming the button or shape at the bottom of your scrolling panel "marker" each time you use it. To get the data-model-id for your object, select the object, right-click it, choose Copy Object ID icon, and paste the value between the double quotes in the script.
I also recommend creating a Storyline T/F variable (e.g., markerInView) and updating it within the script so it can be used as a condition in any Storyline trigger within this slide. Make sure the variable name in the script matches the name of the variable you created in the Storyline Variables panel.
If you don't want the script to enable the player Next button, simply comment out that line using // or remove it entirely. Do the same for line 2, where the Next button is referenced.
If you remove those lines, you'll need to create a Storyline trigger that changes the state of your Next button (either a custom button or the built-in player button) to Normal when the markerInView variable changes to true.
Here's a trick I've heard of for ensuring someone reaches the bottom of a scrolling panel:
At the bottom of the panel, insert a button with a trigger that enables the Next button.
In addition, I suggest giving that button a Visited state. Then, for the trigger that disables Next when the timeline starts on the slide, add a condition that the button's state ≠ (does not equal) Visited.
I'd also include a message at the top of the scrolling panel, or somewhere else on the slide, that tells the user they have to scroll all the way down and click a button there before they can advance.
*** Additional info added to this reply
The above method works when using a mouse. However, a user could just tab to the button at the bottom of the scroll panel.
The attached file provides a demo.
Related Content
- 1 year ago
- 10 years ago