Looking for recommendations/suggestions
So here is the problem:
- I need to make a questionaire/survey webapp
- Each screen will have a question with a bunch of options.
- User can select 1 or multiple options
- Based on user's selection, the next question will appear with a bunch of options and so on...
- The sequence of questions can change based on options selected
Need suggestions on how to get this done in JS/Python
How to code in the logic with the data? Are there any libraries that would do that?
Marcus
Full Stack Developer
I would believe this would be some kind of pre defined list saved to data somewhere. So if using SQL I would simply have a table called decisions or something and have a reference reference field. The decisions table would need a reference to another table called Questions and each questions would have how ever many references to decisions as there are choices.
So Question -> decision -> Question -> decision -> so on.
If you are not using a database I guess you could hard code this into an object.