Anyone knows how to reset a variable value once its value changed since when we select "Reset to Initial State" option for a slide we were able to reset only the button states but not the variable values.
If possible, Can you please send me a screenshot where we can reset variable as i didn't find any option under action drop-down list of Trigger wizard.
Thank you for the help but this might create issues because we were restricting the user from clicking next button by showing an alert popup box until unless he/ she view all the information on the slide. We are changing a variable value to "true" when the user clicks on a button to navigate to next slide. Also we have selected "Reset to Initial state" to the page. If we reset a variable value to "false" on the base layer then the user can't navigate to next slide since we have given condition on next button as follows:
Sorry, but I'm not sure what you are wanting to achieve here - I was under the impression that you wanted to reset the variable value as well as the button states to reset the entire slide to it's original state?
By resetting the variable (I pressume you only have the one variable on your slide that controls when the user can jump to the next slide), the user will need to view all of the information again to re-activate the next button i.e. set the variable value to true again.
If you could provide some further information about how you want the slide to behave, I'm sure we can resolve this query for you.
You have understood my scenario correctly. I wanted to reset the variable value as well as the button states to reset the entire slide to it's original state.
To confirm, when a user revisits a slide you would like the following to happen;
The button states reset to 'normal' - this is done by changing the slide properties to 'Reset to initial state'
The 'next' button becomes inactive again, meaning that they have to view all of the information again - this is done by adding the trigger that resets the variable that controls when this button becomes active
If I have understood your scenario correctly, is your issue now resolved?
To confirm, when a user revisits a slide you would like the following to happen;
The button states reset to 'normal' - this is done by changing the slide properties to 'Reset to initial state'
The 'next' button becomes inactive again, meaning that they have to view all of the information again - this is done by adding the trigger that resets the variable that controls when this button becomes active
If I have understood your scenario correctly, is your issue now resolved?
What if my slide setting is set to "Resume saved state"?
Example:
Current slide [Quiz 1], user click one of the option and click NEXT instead of SUBMIT.
Then if the user click next to other slides and then back to the slide [Quiz 1], I foresee that the variable would be reset but the option user last clicked was still there.
Point: My slide setting have to be set "Resume saved state"
And I notice that if user click RETRY QUIZ at the result slide, although the quiz are all reset but not the variables used.
I try to apply triggers to reset variable used in quiz when user click on RETRY QUIZ but it did not work though.
I'm not 100% sure I understand your question but I think you are wanting to:
Allow the user to revisit the question but have the NEXT button still active once they have answered it once
Reset the variable (and therefore prevent the the user from clicking on NEXT until they have answered the question again) when they click on [Retry Quiz]
Is this correct?
You are correct that the trigger in my earlier post will need to be applied to the RETRY QUIZ button on the result slide rather than on your question slide but you will need to make sure that it is ABOVE the trigger that jumps to your [Quiz 1] slide - Storyline executes triggers from top to bottom so you want to have the reset trigger executed before retrying the quiz.
If I have misunderstood your question, please provide some more information.
Thanks for your reply. I have attached a storyline file here for you to take a look.
My condition of the project is:
Question slide must stay "Resume saved state".
User can jump to other slide from Question slide through both NEXT button and through MENU.
RESULT button at Conclusion slide will only appear if user completed all Questions slides.
RETRY QUIZ button will only appear if user did not pass the passing score.
There is content slides in between the question slides.
Custom made showing correct answer and incorrect answer state in all options when user click submit. (You may refer to Question 1 option state)
My issue came up is when at 2nd attempt of retrying quiz, user did not complete all Questions slide but at point 3, the RESULT button is appears there.
My objective of putting point 3 is because if user did not complete all the Questions slide, and proceed to Result slide, and click on REVIEW QUIZ button, those Question slide that are not complete is blank and did not show the correct answer which I did not want this to happen. Plus, it is not fulfilling point 6.
If NEXT button is disabled if user did not complete the quiz, user can still jump to other slides through MENU.
Hopefully this problem can be solve as my dateline for this project is on Friday 25 October 2013.
Having had a look at it, I think your issue is due to the order of your triggers on the 'Failure' layer of the Results slide. Currently, you have them set up so that when the user clicks on [Retry Quiz] the following happens;
Reset results 1.7 Results Slide
Jump to 1.1 Question 1
Set ResultTracker1 equal to false
Set ResultTracker2 equal to false
Set ResultTracker3 equal to false
As per my previous posts, the triggers to reset the variables (ResultTracker1, ResultTracker2 and ResultTracker3) need to be ABOVE the trigger that jumps to your 1.1 Question 1 slide - Storyline executes triggers from top to bottom so you want to have the reset triggers executed BEFORE the user is returned to slide 1.1 Question 1.
You are right!! Thanks for the info. I did not realize that storyline executes triggers from top to bottom from the first day I learn Storyline until you said.
I've been cracking my head so many days! Whereas it's just a simple mistake!
Trigger order was a valuable lesson I learnt a while back - there is nothing more frustrating than knowing you have the right triggers but not knowing why they don't work the way you think they should, but I'm glad that your project is now working
Hi Anthony, I know this is an old post but I'm hoping you can still help me. How do you reset your variable when you're using a True/False value instead of a numerical value? I attempted to reset it back to the initial state of FALSE but that didn't help. Thank you!
When you use the wizard to change a variable, if you use =Assignment, you can choose True or False for a TRUE/FALSE variable. If you choose =NOT Assignment, it changes it from what it is to the other.
If you are setting it to False, and it doesn't work, the problem is something other than setting the variable.
Hi, Becky -- I see that Walt has offered you a suggestion here, so please let us know if that is what you had in mind! Also, as this is an older thread and Antony may no longer be subscribed, you are welcome to reach out to him directly using the 'Contact Me' link on his profile page if you wish. Hope that helps! :)
Glad it is helpful to you as well Kelly - thanks for chiming in to share. There is a wealth of knowledge within these forums for sure and why we choose to not 'close' threads :)
30 Replies
you need to add a trigger to reset the variable, variables are independent of slides and are not affected by the reset to initial state.
Hi Mayor,
Thanks for your response.
If possible, Can you please send me a screenshot where we can reset variable as i didn't find any option under action drop-down list of Trigger wizard.
Thanks,
Jyothi
Hi Jyothi,
If you want the variable to be reset when a user revisits the slide, you will need to create a 'reset' trigger as follows:
Action: Adjust variable
Variable: [VARIABLE NAME]
Operator: = Assignment
Value: Value = 0
When: Timeline starts
Object: [SLIDE NAME]
@Phil - apologies for jumping in on this
Antony
Hi Antony,
Thank you for the help but this might create issues because we were restricting the user from clicking next button by showing an alert popup box until unless he/ she view all the information on the slide. We are changing a variable value to "true" when the user clicks on a button to navigate to next slide. Also we have selected "Reset to Initial state" to the page. If we reset a variable value to "false" on the base layer then the user can't navigate to next slide since we have given condition on next button as follows:
Action: Jump to slide
Slide: next slide
When: user clicks
Object: Next button
On Condition: VARIABLE value equal to true
Hope you understand my scenario.
Thanks,
Jyothi
Why do you need to reset the variable then?
Hi Jyothi,
Sorry, but I'm not sure what you are wanting to achieve here - I was under the impression that you wanted to reset the variable value as well as the button states to reset the entire slide to it's original state?
By resetting the variable (I pressume you only have the one variable on your slide that controls when the user can jump to the next slide), the user will need to view all of the information again to re-activate the next button i.e. set the variable value to true again.
If you could provide some further information about how you want the slide to behave, I'm sure we can resolve this query for you.
Antony
Hi Antony,
You have understood my scenario correctly. I wanted to reset the variable value as well as the button states to reset the entire slide to it's original state.
Thanks for your help.
Jyothi
No problem Jyothi.
To confirm, when a user revisits a slide you would like the following to happen;
If I have understood your scenario correctly, is your issue now resolved?
Antony
+!
Hi Antony,
Thanks a ton for your response.
Yes, my issue got resolved now.
Jyothi
Hi,
I have a question here.
What if my slide setting is set to "Resume saved state"?
Example:
Current slide [Quiz 1], user click one of the option and click NEXT instead of SUBMIT.
Then if the user click next to other slides and then back to the slide [Quiz 1], I foresee that the variable would be reset but the option user last clicked was still there.
Point: My slide setting have to be set "Resume saved state"
And I notice that if user click RETRY QUIZ at the result slide, although the quiz are all reset but not the variables used.
I try to apply triggers to reset variable used in quiz when user click on RETRY QUIZ but it did not work though.
Need help!!
Thanks
Emalyn
Hi Emalyn,
I'm not 100% sure I understand your question but I think you are wanting to:
Is this correct?
You are correct that the trigger in my earlier post will need to be applied to the RETRY QUIZ button on the result slide rather than on your question slide but you will need to make sure that it is ABOVE the trigger that jumps to your [Quiz 1] slide - Storyline executes triggers from top to bottom so you want to have the reset trigger executed before retrying the quiz.
If I have misunderstood your question, please provide some more information.
Antony
Hi Emalyn! Looks like Antony is taking care of you here
Thanks Antony!
Hi Anthony,
Thanks for your reply. I have attached a storyline file here for you to take a look.
My condition of the project is:
My issue came up is when at 2nd attempt of retrying quiz, user did not complete all Questions slide but at point 3, the RESULT button is appears there.
My objective of putting point 3 is because if user did not complete all the Questions slide, and proceed to Result slide, and click on REVIEW QUIZ button, those Question slide that are not complete is blank and did not show the correct answer which I did not want this to happen. Plus, it is not fulfilling point 6.
If NEXT button is disabled if user did not complete the quiz, user can still jump to other slides through MENU.
Hopefully this problem can be solve as my dateline for this project is on Friday 25 October 2013.
Thanks!!
Emalyn
Hi Emalyn,
Thanks for attaching your .story file.
Having had a look at it, I think your issue is due to the order of your triggers on the 'Failure' layer of the Results slide. Currently, you have them set up so that when the user clicks on [Retry Quiz] the following happens;
As per my previous posts, the triggers to reset the variables (ResultTracker1, ResultTracker2 and ResultTracker3) need to be ABOVE the trigger that jumps to your 1.1 Question 1 slide - Storyline executes triggers from top to bottom so you want to have the reset triggers executed BEFORE the user is returned to slide 1.1 Question 1.
Antony
Hi Antony,
You are right!! Thanks for the info. I did not realize that storyline executes triggers from top to bottom from the first day I learn Storyline until you said.
I've been cracking my head so many days! Whereas it's just a simple mistake!
Thank you so much!
Have a great day,
Emalyn
Hi Emalyn,
Trigger order was a valuable lesson I learnt a while back - there is nothing more frustrating than knowing you have the right triggers but not knowing why they don't work the way you think they should, but I'm glad that your project is now working
Have a great day too.
Antony
Thanks for all the help Antony
Hi Anthony, I know this is an old post but I'm hoping you can still help me. How do you reset your variable when you're using a True/False value instead of a numerical value? I attempted to reset it back to the initial state of FALSE but that didn't help. Thank you!
Becky,
When you use the wizard to change a variable, if you use =Assignment, you can choose True or False for a TRUE/FALSE variable. If you choose =NOT Assignment, it changes it from what it is to the other.
If you are setting it to False, and it doesn't work, the problem is something other than setting the variable.
Hi, Becky -- I see that Walt has offered you a suggestion here, so please let us know if that is what you had in mind! Also, as this is an older thread and Antony may no longer be subscribed, you are welcome to reach out to him directly using the 'Contact Me' link on his profile page if you wish. Hope that helps! :)
A year on, this thread is still a fountain of knowledge!
Thanks!
Glad it is helpful to you as well Kelly - thanks for chiming in to share. There is a wealth of knowledge within these forums for sure and why we choose to not 'close' threads :)
This post was removed by the author
THIS! Thank you!
This discussion is closed. You can start a new discussion or contact Articulate Support.