Add number when I click on a button

Hello eveyrone,

I tried to find on Bubble but I did not achieve.

I have a database with Post (Like tweets). When the user clicks on the button, the Post is displaid in a repeating group.

I want that a number is atumatically recorded on the Database when the user clicks on the button. And the number is very simple :frowning:
Post One : 1
Post Two : 2
Post Three : 3
etc.

So I created a field type number.
But I don’t know what to do after ?
Because Bubble doesn’t understand that the line before is XX and so I could say XX+1.

How could I do it ?

Thank you so much,

Create a workflow when the button is clicked. Do a search for the last number, add 1 to it, and then save the new number to the database. This way, your issue might be resolved.

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