Hi guys
I am building an app on Bubble that helps create a list of hotel bookings. The app consists of input fields with booking details, and when the user presses the create button, the data is saved in custom states for each input. At the same time, the created data is displayed in a group below the inputs as a template for showing booking details. The custom states are lists because the user can create more than one booking at a time. The issue is that I do not want the data to be saved in the database yet, as there are further steps to confirm the information and transfer it to the database. Therefore, I want to save the data in custom states.
My problem is as follows: When I want the user to edit one of the bookings, how can I make them choose a specific booking from the list of bookings in the custom states to edit? The issue I face is that when I try this with the same inputs, a new booking is created instead of editing the existing one. Since the repeating group cannot accept custom states as a data source, I had to use dynamic data in each text field and show them as the current cell index.
I need to know how to select which booking the user can edit and prevent creating a new one.
Secondly, I want to know how to display the data in the repeating group, especially when I have more than one custom state for each input. Also, I want to know if creating custom states for each input is the correct way since I intend to save the data on the page and not move it to the database yet.
Thank you in advance for your help with this issue,