Permit to modify questions displayed by taking previous answers into account

3 views
Skip to first unread message

Muhammed Yaseen Poonawala

unread,
Apr 2, 2019, 5:13:03 PM4/2/19
to Django users
The survey that my project creates are simple questions, but I want to add constraints in a sense that when a question A (Are you married?) is asked with options 'married', 'unmarried'. If the answer for question A is 'married' then I should get question B(How many kids do you have?) or if the answer is 'unmarried' then I should not get question B and get question C('any other question'). Now the problem is I cannot have if-elif-else conditioning written there for this purpose as the data (questions and options) are coming dynamically, like on runtime!

Check my git repo for more insight to the issue Git Repo
Reply all
Reply to author
Forward
0 new messages