# Creating a question and answer app

**URL:** <https://community.thunkable.com/t/creating-a-question-and-answer-app/73774>\
**Category:** Questions about Thunkable X\
**Created:** [March 30, 2019, 7:26pm UTC](https://community.thunkable.com/t/creating-a-question-and-answer-app/73774 "2019-03-30T19:26:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Team-ARCS](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Team-ARCS](https://community.thunkable.com/u/Team-ARCS)\
**Post date:** [March 30, 2019, 7:26pm UTC](https://community.thunkable.com/t/creating-a-question-and-answer-app/73774/1 "2019-03-30T19:26:57Z")

</div>

I am making an app where:  
The user writes inputs in a text box a question and the answer that goes with it. Then the user adds it to a list. When they click choose random (button), it displays a random question.  
I’d like the user to be able to click a button called Display Answer that displays the answer that goes with the question.

I have the question part working, so the user can add a bunch of questions and the app will chose a random one.

I’m unsure about the part where the answer that goes with the random question shows.

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [March 30, 2019, 8:02pm UTC](https://community.thunkable.com/t/creating-a-question-and-answer-app/73774/2 "2019-03-30T20:02:19Z")

</div>

One way to do it is a sublist. You have a minilist of Question and Answer. So each pair is a question and answer. You put that into one list, and you can then look up from there.

If you want to store them, you can do it a different way with firebase or localdb

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/267e0ed062d21f85eb1a52891be8f6b53730ac5a.png)

---

<div class="post-metadata">

**Author:** ![Team-ARCS](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Team-ARCS](https://community.thunkable.com/u/Team-ARCS)\
**Post date:** [March 31, 2019, 5:07pm UTC](https://community.thunkable.com/t/creating-a-question-and-answer-app/73774/3 "2019-03-31T17:07:47Z")

</div>

I get the concept now, but if the user is going to input many questions and answers, how do I make the list have the enough amount of items in the list?  
Also for the part where I click the Choose Random button it displays a question, then I click the Show Answer button and it displays the answer, I don’t know how to collect the right answer to the random question.

Here is my code so far if it helps:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/5/c5c5c963e4d46e2d94fb39163a90c39b40837bec.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a0384355ca3f1f47dfaf3c9ea7202bb8913d88d.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/1/e1ff1ddc031da699f14da4505ac7e29008fcb0a8.png)  
Here is the layout:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/3/63d9dd1916474f4350e5dac0a5f247aa970f8c8d.png)  
Right now the the app chooses a random question when the user clicks on the random question box. Then the whole list deletes itself when the user clicks clear questions.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:15pm UTC](https://community.thunkable.com/t/creating-a-question-and-answer-app/73774/4 "2024-11-08T12:15:54Z")

</div>


