Update information from a search with result container

Hi,

I’m having an issue updating the displayed information from a search with result containter. I’m using Supabase. My flow setup is:

Search for a ‘Donor’ using the Search with Result Container. Once the donor is found, click on the donor’s name, and that information is loaded into a read-only table (a “profile information” section). I have added an edit button so a user can update the donor’s information when needed. Once clicked, a modal is opened with a form displaying the donor’s information for editing. Once the changes are made, the form is saved and updated in Supabase.

My issue:

Everything works perfectly except one thing. When the change is made and updated in Supabase, the displayed information is not updated. It doesn’t show the changes unless I search for the donor and select the donor’s name again.

My question is, once the changes are made and form is submitted, how do I display that changed information without having to search and select the donor again? I would like it to be when the modal is closed the updated information is shown without having to search again.

Thanks for any help!

My question is, once the changes are made and form is submitted, how do I display that changed information without having to search and select the donor again?

If you store the selected donor in a variable, then simply update that variable.

  1. Click donor
  2. Set selected-donor object to the item
  3. Make form changes
  4. Click save/submit and update Supabase (phone_mobile = INPUT phone mobile)
  5. Set selected-donor partial (“phone_mobile” = INPUT phone mobile)

I have the donor stored in a selectedDonor variable once they are selected from the search. When I edit the information it is updated in Supabse, but the front end stays the same, it does not update until I search again.

you are just missing step 5 of @joseph ‘s post. Which is to update the variable or collection. you can do with with update variable action or update collection. in inserts to supabase you can also request a return of the insert rows that can help with the update sometimes. The other thing it might be is you may need to refresh the input where the change was made as depending on your setup it will keep the typed value instead of the updated variable.