Button to Populate Input Field with number

Hi I’m very new to Bubble,
How would I create a button that when pressed for the 1st time would place 1 in a field box next to the button
if pressed again would change the 1 to 2
if pressed again would change the 2 to 3
to a maximum of 6

Hi there, @adigurus… one way to do what you described is to set a custom state (number) to the state’s current value plus 1 every time the button is clicked, and set an input element’s Initial content field to the custom state. Then, do whatever you want (for example, disable the button) when the custom state’s value reaches 6.

Hope this helps.

Best…
Mike