appsmith
appsmith copied to clipboard
[Bug]: Only the first list item resets with the resetWidget function
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
A user is performing bulk uploads using the list widget; after he submits the form, he wants to reset his input widgets on the list items. He used the resetWidget function and passed the List1 widget with children: true, but it does not work.
Link: https://community.appsmith.com/t/resetting-a-list-in-a-modal/1230/2
Steps To Reproduce
- Drag and drop a list widget
- Add a couple of input widgets to the first list item
- Add a button and set the
onClicktoresetWiget-{{resetWidget("List1",true)}} - Write some dummy text on the input widgets
- Click the button to reset the list
- Only the data on the first list items resets
Public Sample App
No response
Version
Cloud
Do we have a workaround for this issue? A user asked for it - https://discord.com/channels/725602949748752515/760761686549463060/1006541611615920158
Short answer no. I don't know if this is something we can fix in the time being. @Tooluloope can you check?
Input widget in the first item does not get updated on next page in the list. It stays the same as previous page.