Hello Bubble Friends,
I’m still new to working with custom states, but I am currently stuck and don’t see what I’m doing wrong.
Goal:
A user clicks an icon and a popup window opens. In the window should be an initial set of inputs for the user to create a new inventory item. If they want to create multiple items at once, they can click a + icon and an additional set of inputs to create additional items will appear. This can be repeated. Once finished, the user hits a save button and all of their inventory items are created in the database. Each set of inputs will also have a trash can icon in case the user decides to delete one of them before saving the rest.
Problem: when the popup is triggered, the repeating group doesn’t appear in the window as if it’s not being populated. Clicking the + icon seemingly has no effect.
Here’s what I currently have going on:
- Page name, “inventory”.
- Custom state applied at page level, “add inventory item”, it is a list and its state type is the data type “items - items”, which is where I intend to have the new inventory items to be stored.
- In the popup window I made a single cell repeating group, inside is a drop down menu and a few inputs the user will use to create the new inventory item.
- In the same popup window, but outside of the repeating group, is a + icon which should be clicked to create an additional sets of inputs in the repeating group; and a save button that should save all the new inventory items to the database.
- The repeating group’s type of content is the data type “items - items”, and the data source is the page level custom state “add inventory item”.
- add icon workflow: set state, element: inventory, custom state: add inventory item, value: inventory’s add inventory item:plus item parent group’s items - items.
Why isn’t the initial set of repeating group inputs present when I open the popup window? Why isn’t the workflow generating additional sets of inputs?
Thoughts? Thanks!