# Quiz Help- need to navigate between screens if they go to correct or incorrect screen

**URL:** <https://community.thunkable.com/t/quiz-help-need-to-navigate-between-screens-if-they-go-to-correct-or-incorrect-screen/2603284>\
**Category:** Questions about Thunkable X\
**Created:** [September 19, 2023, 1:48pm UTC](https://community.thunkable.com/t/quiz-help-need-to-navigate-between-screens-if-they-go-to-correct-or-incorrect-screen/2603284 "2023-09-19T13:48:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.fat4z3b](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@e.fat4z3b](https://community.thunkable.com/u/e.fat4z3b)\
**Post date:** [September 19, 2023, 1:48pm UTC](https://community.thunkable.com/t/quiz-help-need-to-navigate-between-screens-if-they-go-to-correct-or-incorrect-screen/2603284/1 "2023-09-19T13:48:18Z")

</div>

Hi,

I am need of some assistance on how I can get my code to navigate if the students land on the correct page (if they get to here, it should take them to the next set of quiz), otherwise if they get it wrong (it will take them to the incorrect page and then they can repeat the question)

[https://x.thunkable.com/copy/fd8d223e3148970c44fff887e97d3273](https://x.thunkable.com/copy/fd8d223e3148970c44fff887e97d3273)

---

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [September 20, 2023, 12:48am UTC](https://community.thunkable.com/t/quiz-help-need-to-navigate-between-screens-if-they-go-to-correct-or-incorrect-screen/2603284/2 "2023-09-20T00:48:11Z")

</div>

A bit quick and dirty but have a look here -

[Quiz](https://x.thunkable.com/projects/650a3d71ce60aa8f46d4a129/85c8f75f-3062-49fe-bdad-33547f39cde5/blocks)

Essentially you need to keep a track of what quiz you are on and therefore where to go next after a correct answer.

You can also increment a counter for every first try correct answer and then show that on a Finish screen.

---

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [September 20, 2023, 1:16pm UTC](https://community.thunkable.com/t/quiz-help-need-to-navigate-between-screens-if-they-go-to-correct-or-incorrect-screen/2603284/3 "2023-09-20T13:16:08Z")

</div>

Ok,

[Updated Quiz](https://x.thunkable.com/copy/c6902570e1d123b484c29dbbfdd478d3)

Did a bit more work. The current model that you used would mean that you have to hardcode a screen for every single question which would be very unsustainable. The ideal way is to use a datasource to hold the questions, possible answers and correct answer.

You then use only 1 page to present the questions. If the selection made is incorrect, the incorrect page announcement screen is called and the user is returned to the same screen which used the same question number to pull from the datasource.

If the answer is correct, the question number is incremented and the next question is presented.

You can also do this if you don’t want to use the function.

Have one of these for each button

 ![2023-09-20 13 31 26](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/4/047e3456bdf58606aeb772de157c4d3f0c51e244.png)

Have a look through and if you have any questions, let me know.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 19, 2023, 1:16pm UTC](https://community.thunkable.com/t/quiz-help-need-to-navigate-between-screens-if-they-go-to-correct-or-incorrect-screen/2603284/4 "2023-12-19T13:16:58Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
