Clear custom state values

How can i clear the values inside the custom state (Tried clearing group, where the element exists but the values are not changing)

This is for running a progress bar for a form filling

2 Likes

To clear a custom state, you need to fill it with an empty value. Resetting a group only resets the data source, and not the states.

So you use the Element Actions - Set State in the Workflow menu and leave the value blank.

image

NOTE:
If you have given a state a default value, then that value will be treated as the state’s reset state. In other words, if you use the method above, it will not empty the state, but reset it to the default. If you want to empty the value, you need to specify a bit more explisitly that you want it empty. I find the easiest way to do it is to insert a space in the value. Bubble then sets the value to " ". If you then remove the space, Bubble will keep it as “”. The result should look like the bottom image.

image
image

13 Likes

Thanks petter, I will try the same

Note that I just edited the post to add one more detail.

Might be useful for those who find this thread in search.

3 Likes

This will be good if there are only a number of fields, For large amount of fields 10 or 20+ is there any bulk reset solution…?

1 Like

Not that I’m aware of, unfortunately.

1 Like

This would be a huge addition though… I use masses of custom states to keep my performance snappy, but changing values or resetting them is the most time consuming part of my App builds.

4 Likes

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