Hi Priya,
I am sorry for the late reply. There is an easy way to fix the issue, you just need to add labels to your repeat groups (lines 31 & 34 I think). Then, the draft mode should work as expected.
It may seem wired to you, but the group with a label and without label generates two different things on the backend for the web app. We currently do not support the group without a label in the web app.
If you think this might be a valuable feature to you, I encourage you to submit an enhancement request via Esri Support. Our Support team will assign an official enhancement number for your records. Similar requests from other customers can then be attached to the same enhancement request, which helps us assess demand for the enhancement and prioritize it accordingly.
Thanks a lot!
Ruth