imi-ms / MoPat

Mobile Patient Survey (MoPat) is a Java based web application to create, distribute, complete and export medical questionnaires.
Apache License 2.0
7 stars 1 forks source link

Nested conditions are not applied when navigating back in the survey #26

Open ywarnecke opened 1 month ago

ywarnecke commented 1 month ago

Example:

Question 6: Answer 1 enables question 7 Question 7: Answer 1 enables question 8 Question 8: ...

When doing the following: Question 6: Select answer 1 Question 7: Select answer 1 Question 8: Select anything Navigate back to question 6 and select answer 2

Then only question 7 will be deactivated and question 8 will still be shown. This is because the selected answer for question 7 is still stored, although it is not displayed.

Nested questions should therefore be deactivated and deselected, when deactivating the parent question.

This can be done by doing a recursive processing of all nested questions.