Hi everyone !! For my quiz app I want give points for users. So I want to create it like if user’s answer is correct give him 5 points if not no points. So for score do I have to create a collection ? And There’s another problem. In my quiz app when I clicks a category and when I clicked a level the same question is coming for every levels. What should I have to do for this?
Does anyone know what should I have to do?
Hi,
Be patient , not every expert can reply in an 3hour SLA, I just bumped into this.
You can add Answers collection with the indication for that user if answer is correct or wrong and also the score.
In Button to submit answer, you can add custom action with a conditional.
If answer is correct then add 5 points and set answer as correct in the Answers collection.
Then another custom action with
If answer is wrong then add 0 points and set answer as incorrect in the Answers collection.
Let me know if clear.
Yes this is correct and should solve the problem.
Thanks @JL_LJ and @AfonsoMarques
And in my quiz app when I clicks a category and when I clicked a level the same question is coming for every levels. What should I have to do for this?
Try to show us de database with a print, and the connections in detail?
Are that many to many ou 1 to 1?
sure.
For display the questions I’m using the custom list. But in history category for all levels 1 question. Music and Gk are same.
In my opinion
You should eliminate levels on Categories .
One Question have 1 Level right and the 1 question have a categorie.
then you filter the questions shown by “level” and “categorie”, if not is redundant
Try and see if it solves.
Yeah inside a category there are like 20 levels and inside a level there are 6 questions
Hey it works. Thanks a lot.
Your problem is you open a level and its always the same question right?
Example
categorie C"countries" Llevel 1 - Qwhere is USA?
A level can have Many categories and many questions right?
A question should only have 1 level
This is diferent but why you don’t resume LEVELS to a number on de Question
And have a Categorie and a Questions (collection) and inside question you do a propretie called LEVELS that you numbered.
Like Categorie Countries , Question “where is usa?” level 1
and filtrate what the user see based on that number.
with this you can clone the data to see https://previewer.adalo.com/8d1a432e-aa7f-4799-8286-7974ed6cfd34
its just solvin 1 issue but its my idea, i dont know if will be like you wish
user test@test.com pass test
@AfonsoMarques are you telling that create a number property in the questions collection and no need a collection for the levels?
Exactly
A quarta, 25/08/2021, 20:09, Dilon Perera via Adalo <adalo@discoursemail.com> escreveu:
Each user has their level no need to do a categorie about it
Just a some each time he moves up or down a level.
A quarta, 25/08/2021, 20:09, Dilon Perera via Adalo <adalo@discoursemail.com> escreveu:
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.