Forum Academy Marketplace Showcase Pricing Features

Add item to custom state list

Is it possible to add something to a custom state list, just like you can do with normal data? I can not figure it out, apparently, I can only add lists to the state, and not individual items to the list.

In vanilla Bubble:

some_list :plus item some_scalar_value

… returns some_list with some_scalar value added to the list (as long as some_scalar_value is not already in the list). The (new) single value is added at the end of the list. For more control over that, resort to a plugin like Floppy (actually, just Floppy - there’s no other plugin like it).

Hello @xtechaus,

I have gone through this problem. First, you need to create a custom state with the list as shown in the screenshot:

Screen Shot 2022-11-23 at 10.49.05 AM

Then start the workflow on the button when you want to add a list to the custom state.

Screen Shot 2022-11-23 at 10.45.54 AM

Afterward, save custom in your database as shown in the screenshot:

Screen Shot 2022-11-23 at 11.05.30 AM

There will be options like:

  1. Set-list: It will replace the old list with the new one.
  2. Add-list: It will add both lists but the repeating items will be added once.
  3. Add: It will simply add lists and repeating items.

I hope it will help you in resolving your issue.

If any further assistance is required please contact me on:
LinkedIn:- https://www.linkedin.com/in/karamjitsinghwaldi
Gmail:- [email protected]

Another (somewhere similar) approach is Here

thanks both of you, I will have a try at these.