mercredi 15 février 2017

Dynamic survey App

im creating a survey app, but im struggling in one of the features, and i notice that i cant find much examples of what im exactly trying to accomplish. The most common survey apps have the hability in creating a survey that belongs to questions, and select in each type of question a input type. But for example in the input type of selection, option checkbox or radio i wish to relate a option selected of a question with a another question, basically depending of a answer of a user in the selectio option, making another question.

My db structure is like:

surveys:
- id;
- title;
- description;

questions:
- id;
- survey_id;
- label/title;
- input_type

option_question:
- id;
- name;
- question_id;

But i cant find what table or structure i need to design my db to accomplishe the feature i wish. Can someone advice me the best path?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kwUyDb
via IFTTT

Aucun commentaire:

Enregistrer un commentaire