Custom state isn't populating

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!

I don’t think it’s possible to create a new thing in custom state especially when the custom state data type is a part of database in your case it’s database “item”, I suggest you to use the database not the custom state.

Screenshots of the workflow will help.

For sure, see below.

The goal of what I’d like for the user to see when the popup opens. Clicking the + icon would add another set of the same inputs for the user to make a second inventory item, and again for a third item, etc. The save button would save all the new items to the database.

Page level custom state:

Repeating group:

Set state workflow when the + icon is clicked:

@ihsanzainal84

This is similar to creating invoice list items. This is actually kind of tricky. So you need to create a repeating group and when you click on plus a empty repeating group with empty input fields should appears. Ping me at apps@versasyncstudios.com I can help you achieve that through a zoom meeting or something. Dont worry I won’t charge anything.

This topic was automatically closed after 70 days. New replies are no longer allowed.