Database / questionnaire
Answered
Transvaal lion posted this in #help-forum
Original message was deleted.
Answered by B33fb0n3
you can create something like a multi step form and in each step there is one question with multiple select options. Like that the client can only choose one option at a time and also answer only one question at a time.
The
The
step state (which is the currenct step) can be saved inside a useState.11 Replies
you can create something like a multi step form and in each step there is one question with multiple select options. Like that the client can only choose one option at a time and also answer only one question at a time.
The
The
step state (which is the currenct step) can be saved inside a useState.Answer
Transvaal lion
sounds good, just i dont realy know how to make it in the code :/
u r new in the web developement scene?
Transvaal lion
ye
I make my bachelor work and there i need this
oh ok.. it's pretty hard to integrate a complex scenario when not knowing what you are doing... so if you have some time, start with the basics (only the important things) understand what you are doing and then integrate this functionality
Transvaal lion
now its working, now i dont know how to get data under one id.
Original message was deleted
Pretty simple. You create a simple struct where you store:
1) the id of the question
2) Any information about the person that you want to see
3) The answer
When listing the answer you can match this struct with the questions array replacing all the questionIds with the actual questions
1) the id of the question
2) Any information about the person that you want to see
3) The answer
When listing the answer you can match this struct with the questions array replacing all the questionIds with the actual questions
@Transvaal lion now its working, now i dont know how to get data under one id.
What do you mean get data under one id?
Transvaal lion
now one feedback I get back like this, so thats why i just want it under one id.
@Transvaal lion now one feedback I get back like this, so thats why i just want it under one id.
Twice you have deleted the original question. Do not do that. Mark the answer instead.