appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: Only the first list item resets with the resetWidget function

Open vihar opened this issue 3 years ago • 2 comments
trafficstars

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

  1. Drag and drop a list widget
  2. Add a couple of input widgets to the first list item
  3. Add a button and set the onClick to resetWiget - {{resetWidget("List1",true)}}
  4. Write some dummy text on the input widgets
  5. Click the button to reset the list
  6. Only the data on the first list items resets

Public Sample App

No response

Version

Cloud

vihar avatar Jul 27 '22 14:07 vihar

Do we have a workaround for this issue? A user asked for it - https://discord.com/channels/725602949748752515/760761686549463060/1006541611615920158

danciaclara avatar Aug 09 '22 12:08 danciaclara

Short answer no. I don't know if this is something we can fix in the time being. @Tooluloope can you check?

dilippitchika avatar Aug 09 '22 13:08 dilippitchika

Input widget in the first item does not get updated on next page in the list. It stays the same as previous page.

karthikeyann avatar Nov 25 '22 11:11 karthikeyann