-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated Group: Items within group are duplicated in the Questionnaire Response, if question depends on enableWhen condition. #1895
Comments
looking into it, thanks! |
The questionnaire response contains answers to all selected and enabled questionnaire items. However, when copying the questionnaire response, the use of 'getEnabledResponseItems' fails to copy the selected answers of enabled items. |
In the |
If you refer the attached video for steps : |
According to the existing code, the EnablementEvaluator class has a |
Additionally, when the type is a repeated group item, the questionnaireResponseItemParentMap is always empty in the findEnableWhenQuestionnaireResponseItem() API. This is because the buildParentList logic in EnablementEvaluator fails to correctly build the parent list for repeated group items. |
@nsabale7 Can you please confirm once? |
Yes the above response was the expected behaviour. |
Describe the bug
If a question depends on enableWhen condition in a repeated group, it duplicates the items from the first response.
Component
SDC library
To Reproduce
Steps to reproduce the behavior:
Use component_repeated_group.txt as a questionnaire
Screenshots
https://user-images.githubusercontent.com/82660329/222439586-5edfd017-31bb-485b-88d3-622de7b0a80e.mp4
@jingtang10
The text was updated successfully, but these errors were encountered: