Good morning everyone!
I have tried to fix my problem and I am stumped on creating a Start Over and Go Back button on my site, so any help would be greatly appreciated.
Here is a link to my sample page (forgive the colours in the background, I put those in there to show myself whether or not the changes in state I was intending to make actually worked, the colours will be removed in the live version):
https://qwybble.com/version-test/index_practice_2
Here is the situation:
User logs in, selects a category, no problem, here is the flow for that, when the user chooses a category, “Electronics”, for example, a new state of the destination page is set:
On the destination page, a repeating group of dollar values is presented.
Great.
However, when the user clicks on the “Start Over” button and goes back to the original categories page, and then clicks on “gasoline”, or “appliances” for example, then dollar values that are now presented remain the dollar values that were presented for “Electronics”, then if they start over again, and click on another category, the dollar values are screwy even more.
I suspect the issue is that while a State is set when the user originally clicks on Electronics, when the user clicks start over, the State is somehow not being re-set to start from scratch, so its pretty funky and I really have no idea how to fix it, I’ve tried a hundred times to change the states and those types of things, so I’m pretty much out of ideas.
Here are some directions on what I am doing:
-
user selects category from a repeating group
-
user is moved to a second repeating group of dollar values, a new state is set
-
start over button is clicked, user goes back to originating page, a stage is set which is intended to start from scratch but clearly isnt
-
user clicks on another category, a new state specific to that category is set, and the states control what set of dollar values are presented, these dollar values and the states are getting mixed up
-
I should also note that the repeating groups should be displaying different sets of categories and different sets of dollar values based on the stages that have been set
And that process you can if/when you visit the page above.
Thank you for any assistance or ideas you might have, I hope that all made sense and happy to answer any clarifying questions.
L