Closed santosh-pingle closed 1 year ago
i think this should be fixed by #1468 . please verify @santosh-pingle
@santosh-pingle can you confirm if this is fixed?
It's reproducible.
Tried this, it is working fine for me (Not showing validation error on start)
Emulator details Pixel 4A Android version 12 sdk_gphone64_x86_64-userdebug 12 SE1A.220203.002.A1 8151367 dev-keys
cc @f-odhiambo
@santosh-pingle , could you please confirm if this is still reproducible?
Issue is reproducible. Me and @aurangzaibumer already had discussion on it. He already proposed draft, which he supposed to share with @f-odhiambo as per offline discussion with Umer.
@aurangzaibumer do you have any update/ETA for this? thanks
@aurangzaibumer do you have any update/ETA for this? thanks
Have investigated the issue and there are two possibilities to solve this problem
to introduce/add a new field on questionnaireItemViewItem that checks if answers is either being modified/add/deleted by the caller. In that way we will able to apply check before calling clearAnswer method. If User has not updated/added/answer in that case we wouldn't call clearAnswer.
to make answers variable in questionnaireitemviewitem nullable and initialize it when answer is either being added/modified/deleted but haven't tried this out because it has a very huge impact on all view factories and its usage is almost on all view factories.
@jingtang10 Please review and suggest which one you think is more suitable.
cc @f-odhiambo
i think what you need to do is to make sure if the answer is not validated you don't show any error.
Looking into it, thanks!
Describe the bug Modal and open choice view shows error message initially if answer is empty
Component SDC library.
To Reproduce Steps to reproduce the behavior:
Expected behavior Initially, it does not show validation error message.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
Would you like to work on the issue? Please state if this issue should be assigned to you or who you think could help to solve this issue.