Existing and new items in a custom state

Below is that the bubble bot tells me to add uploaded images to a custom state with existings images from the database;

To append the Multi-File Uploader’s value to an existing list in a custom state, you’ll need to use the “Set state of an element” action in your workflow. Here’s how:

Create a custom state of type "list of files" if you haven't already.
In your workflow, use the "Set state of an element" action.
For the new state value, use an expression that combines the existing state and the new files:

[Current State’s List of Files] + [Multi-File Uploader’s Value]
This will create a new list with both the existing files and the newly uploaded ones.

The problem I can’t add the ‘+’ to the value

How can I add the +?

Or can it be done in another way?

You should try using the « plus item » expression, not « + »

In Bubble, you use the + operator only for numbers, and you can’t type + as text. You need to select the operator through the options. In your case, you want to add an item to a list, so as @clementine.grosset said, you need to use “plus item” instead of +.

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