Quiz answer sheet with firebase

Here is my firebase database structure…

I want to show user an answer sheet of above quiz questions.

Like this :

Q 1
Option 1
Option 2
Option 3
Option 4
Answer

Q2
Option 1
Option 2
Option 3
Option 4
Answer

suppose project bucket is xyz
now if you want answers then set project bucket to xyz/Answer
now to get answer for first question directly use get value tag will be 1… and so on…

With your method i need to use 30 firebase database components which is not possible :joy:.

I want to do it with single fb db for Question, option 1,2,3,4,5 and answer respectively.

always change firebase project bucket as per your need…

For test here i am only using 5 Questions, suppose if there are 100 questions then how it is possible to set firebase bucket to get each value.

I want it dynamically.

I am trying with dynamic card view and dynamic labels.

You can do it with one one database component only. .

1 Like

I am able to get all values successfully but getting some errors

Blocks

Call get value 2 when you got value for 1

Problem is solved by calling cardview when all data is loaded.

1 Like

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