I have created a quiz app where within the same screen can press the “forward” button to next question and “back” button to previous question.
How to create the blocks where:
When I answer the question with selected option ( A,B,C & D) then if I go to next question and if back to previous question should see back my previous selected answer ?
Example 1 :
Question 1 : If answer B and C where C is the correct answer,
Then I press forward button for Question 2 and go back to Question 1 then should see both my wrong and correct answer.
Example 2:
Question 2: I answer A where this is correct answer.
Then I press back button to go Question 1. ( At this stage I want to see my previous selected answer)
Later if I go back to Question 2: At this stage, I should see the selected answer that I choose before -Answer A .
Then If I go to Question 3, I should select the answer and should not carry forward from the previous page.
This really depends on how you’ve set up your project so far. If you’re using a data source for the questions and answers and you have a single quiz screen with placeholder labels and images, you just need a question number variable that changes as the user goes “forward” and “backward” through the questions.
You’re welcome to post the link to your project and someone may be able to help with this.
Hi @rajanrj529, Maybe you could put each question on its own screen and program the screen to get the data and then navigate through screens for forward and backward options.
Hello! I find this really simple because I made something very similar 1 or 2 days ago, except I don’t have a forward and backward button, instead I have a slider.
I’d recommend avoiding this method for creating a quiz. It’s a ton of work to change/fix individual question screens when set up this way. Much better to use dynamic variables/blocks on a single screen. That way, if you have 5 questions, it uses one screen and if you have 500 questions, it still uses one screen (not 500 screens!).
This is a Quiz project. The idea is to show back/next button. So the project is not complete and you will need to revisit the codes as now it’s not proper.
The sample project that you provide is not fixing my issue.
If answer selected then it carry forward to next question and so.
My requirement was the chosen answers/answer should remain in the same question and should not carry forward to next questions. Also, when go back to the given answer question, then should able to see selected answers.