I am trying to create the below web app. I am nearly finished but have a small problem.
The web app should:
- Ask users answer pre defined questions
- The user will only be able to answer yes,no throughout all the questions
- In the back end each option yes or no is associated with a pre defined text string. So as the user answers the questions in the back end it should keep track and store those text strings.
- Once the user comes to the end of the quiz it outputs all the associated text strings in a document for them to view
- The quiz should also have a pre defined route of questioning depending on the users answer selected
For example:
QUESTION: Did you enjoy your experience? YES = âThat is great we hope you come again!â NO = âWe are sorry to hear this!â
[The string should be stored and next question should be asked depending on what was selected, this would be pre defined]
What I have currently created
Data Types:
Questions
Q_ID - unique ID of the question
question - the actual question itself
output_no - the text string if the No button is selected
output_yes - the text string if the Yes button is selected
question_type - question category
Answer
output - will save the test string (either output_no or output_yes)
I am using a repeater group to display the questions from the âQuestionsâ data type in the order of the Q_ID.
The Yes button is configured to create a new thing within the âAnswerâ data type.
The No button is configured to create a new thing within the âAnswerâ data type.
I am using PDF Conjurer to put the âAnswerâ data type âoutputâ into a PDF document.
Problem I need to solve
-
As simple as it may sound I am unable to figure out how to jump between what question is displayed depending on whether Yes or No is selected.
-
I would like this so when i deploy it Users do not have to log in. It can be used by many users at the same time. They simply just click start and the quiz starts.
Thanks in advance!