Skip to content

skip logic on the form not clearing when different options are selected #1841

Open
@aurangzaibumer

Description

@aurangzaibumer

Describe the bug
When we apply the skip logic, the answer is retaining the previously given answer instead of having a default value.
For any question trees that have to skip logic applied, if the child questions have answers, they remain visible, even if the original question or “parent” question is no longer displayed.

To Reproduce
Steps to reproduce the behavior:
Having enableWhen/Skip logic question, For suppose if you have Question B that depends on Question A (skip logic), if Question A is set as Yes, Question B appears and you select an answer. Then you re-select Question A to NO, Question B disappears and when you re-select Question A to Yes again, Question B appears with a pre-selected answer that was selected before.

Expected behavior
To control if we want to have answers already selected (if reset) or not for skip logic questions.

Screenshots
https://user-images.githubusercontent.com/35099184/216338902-b1528f85-d575-489b-b209-8627582503a4.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority issueeffort:smallSmall effort - 2 daystype:bugSomething isn't workingux

    Type

    No type

    Projects

    Status

    Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions