I am struggling trying to understand how to setup the visibility of a “Next” button on a quiz I am making.
I don’t want people to be able to go to the next screen (or lesson) until they get the answer correct on the quiz. I am using the template made by @grumo and right now the Next button is visible even if you get the answer wrong.
The action looks like this:

I thought I could just add a “Wait for condition” above the “Show detail screen” and show the button if the answer was correct but I can’t figure it out. Wondering if someone else has solved this before or can point me to a resource that explains it?
Your action has a path to travel regardless if the relation is empty or not. Not sure about your setup but you may need to modify the IF branch to check if the Relation is empty AND IF the answer is correct. Then add an IF condition in place of the ELSE branch to check if the answer is correct.
That way if the answer is wrong, it will not have a path to travel down in the action because both branches will block it. The should either prevent the button from displaying or at least mark it as inactive.
An alternative is to just apply a visibility condition on the button based on if the answer is correct or not.
2 Likes
Ok awesome, I will try that out.
Do you have a link to a good primer that helps people struggling to understand conditional statements and how to keep track of what’s going on?
Or just “go into whimsical, or whatever, and draw it out to keep it clear in your brain” ha
Here’s a couple resources to get you started.
1 Like