Forum Discussion
Advanced Branching
- 2 months ago
Part of the problem relates to having two competing variables for customer or associate. Storyline will fire the first trigger in the list that matches the set values. If you previously followed the customer path, then the RoleCustomer is set to True. Even if you subsequently select the Associate path, RoleCustomer is still True, and since the triggers to jump to a home page place the customer trigger first, you always return to that page (Slide 2.23).
A fix could be to explicitly set and unset the Role variables. So, on Slide 1.6, add an extra trigger before each current Set Role trigger. Before setting the RoleCustomer to True, set RoleEcolab to False, and vice versa for the other set of triggers. This way, only one Role variable is true at the same time.
Alternatively, set the variables to False at the end of each training section to clear them, or if there are just two roles, you could just use a T/F isRoleCustomer variable to differentiate the roles. Just explicitly specifing both on Slide 1.6 is the easiest though.
Just watch out for any other areas in your project that may set conflicting variables that you later want to use for conditional decisions.
Thank you for your feedback.
One slide 1.7 or 1.8 the next button will jump to a quiz once I have added that. The and triggers are set the correct way. All of them need to be completed before the next button will display.
Thank you for the help on the settings variables and when they change.
I understand that you want all of the topics to be completed before enabling Next. I also understand that the associated variable is adjusted to True when a topic is completed.
However, this trigger for hiding the Next button won't hide Next until all of the topics are completed.
When conditions are connected with "and," all of the conditions must be met. Otherwise, the trigger won't perform the designated action. So, with that trigger, the Next button will only be Hidden if all of the variables = False. After any variable changes to True, the action won't be performed. The Next button will show when the user revisits the slide after finishing just one topic (that is, one variable = True).
That is why my earlier reply said to change the condition connectors to "or." When conditions are connected with "or," the trigger's action will be performed if any of the conditions is met. So if that same trigger used "or" instead of "and," the Next button would be Hidden if any of the variables were still False (that is, if any topic hadn't been completed).
This trigger with conditions connected by "and" would also accomplish the same thing:
Related Content
- 8 months ago
- 10 months ago