Update number in a text box as user clicks + or - buttons next to it

So i have a text box which displays a number (Integer), and on the sides there’s a + button, and a - button, so the user can update the number, how would you program it in bubble to make it work?

1 Like

Where is the number coming from initially? Is it from the database, a custom state or an input?

If from database:

When + button is clicked > Make a change to the Thing that contains the number field: number = This Thing’s number + 1

If from custom state:

When + button is clicked > Set state: State = State + 1

If from input, you’ll need to use a custom state or database value anyway so that you can increment the value entered in the input.

thanks, will check that out