Next button disabling until user interacts with 5 of 10 objects
Mar 11, 2019
By
Tom Seguin
Hello everyone,
I am trying to work with variables with SL3 but I am stuck with this interaction. Basically, I have a page with several links to other pages. Let's say 20 for example. I want the user to visit at least 5 of these pages (they all return to this initial menu page) before they can click on the next button.
I looked at this article (https://community.articulate.com/discussions/articulate-storyline/next-button-to-appear-after-all-layers-have-been-viewed) but it only states how to do it when all links have been viewed.
Can this be done.
A really nice to have also is to have an audio file play once they return from viewing the 5th page.
Thanks in advance.
Tom
10 Replies
Hi Tom. You can get this done with variables! Here's how I did it:
Here's a little demo file. I made it in Storyline 360, but the attached sample can be opened in Storyline 3 as well. I hope that helps!
Hi Crystal,
Thank you for this. This definitely helps. For some reason – my variable is not adding up.
Also, do I have to have them disabled? I would like the user to be able to revisit the content if they choose to do so.
Tom
Happy to help, Tom! For the variable issue, I like to reference the variable on the slides so I can see what's happening to that value whenever I click.
You don't have to have them disabled. Instead, you could add a condition to the "adjust variable" trigger not to adjust it again if they click on the same object more than once, for example, if the object is in a Visited state instead.
I displayed the variable on my page for reference as you suggested but when I click on the links – it stays at 0.
I’ve attached a few screenshots for reference.
[cid:image001.jpg@01D4D814.ECA09740]
All links are setup like this:
[cid:image002.png@01D4D814.ECA09740]
[cid:image003.png@01D4D814.ECA09740]
I really appreciate your help.
Tom
Hi Tom,
Whoops! It looks like you may have replied to the email notification and that doesn't allow images or attachments to be added here. Click this link to visit the discussion and you can upload those here using the Add Attachment button.
Sorry about that. Here are the screenshots.
Hey Tom,
Thanks for sharing those images. Swap the triggers so that you are adding 1 prior to jumping to another slide, otherwise, that trigger is never firing.
Hope that helps!
This may not matter to you, but by adding 1 for each click, a user could easily enable the Next button by repeatedly clicking the same item.
Yes. I've done something similar in the past. As Michael points out, the same object would contribute to the unlock.
Another way to do this is to use a "function" object. I use these often. Draw a shape off the stage and set the state to hidden.
Add a trigger to set your "unlock" variable to zero. Then add triggers to check the state of each of the clickable objects on your slide that you want to contribute to your unlock. For each object in the selected state or visited state, add one to your unlock variable. At the end of the trigger sequence, enable the next button if the unlock variable is equal to or greater than the number of objects you want to have the user click.
Then, at the end of the sequence on your hidden object, add a trigger to set the state of the object back to hidden.
On each of your clickable objects, add a trigger that shows this object on click. This will activate your function object, do the math, then hide the object. This way, it checks the state of your objects each time an interaction is made.
Thanks everyone!
It works.
This discussion is closed. You can start a new discussion or contact Articulate Support.