-
Notifications
You must be signed in to change notification settings - Fork 293
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: Mapping fails when questionaire response is passed as argument. #1900
Comments
@nsabale7 can you double check if my PR fixes the issue for you? thanks! |
@jingtang10 I tested your PR using Thrown exception was |
Hi Nitin - looks like this is the problem:
But I tested using your questionnaire and your questionnaire response and it worked. See screenshot: |
component_repeated_group_response.txt |
@nsabale7 - I updated the fix and merged it. please check. if this is not fixed please reopen. |
Thanks a lot @jingtang10. Will test and let you know. |
Describe the bug
If a questionnaire response for repeated group item is passed, the mapping fails. This happens because the implementation currently adds answers to item.answer for repeated groups, and then later createRepeatedGroupResponse takes care of putting answerItemComponents to the repeated groups item.item field. So when questionnaire response is passed it expects repeated group items in item.answer field
Initial UI shows up but when submitted, answers are missing
Component
SDC library
To Reproduce
Steps to reproduce the behavior:
Use following questionnaire and questionnaire response
component_repeated_group.txt
component_repeated_group_response.txt
Screenshots
If applicable, add screenshots to help explain your problem.
repeated-groups-with-response.mp4
@jingtang10
The text was updated successfully, but these errors were encountered: