Hey @remdim, welcome to Bubble!
Here’s a quick overview to achieve this:
Add the following elements to the page: input, button, and repeating group with a text element inside the cell.
When button is clicked, create a new Thing. I’ll use a sample custom data type called City and a text field within called Name. So, when button is clicked > create a new City > name = input’s value (the input on the page)
Add another action after the creation to reset the input (clear it). It’s under element actions.
The repeating group’s type = City, and the source = search for cities. The text inside the RG cell is “current cell’s city’s name”. So up to this point, you type in a city name, click the button and a new city will get created with that name. The repeating group will display the list of all cities created.
To remove the last item in this list after it has reached a certain number of entries, you can do 2 ways: either delete the oldest record when it meets that count or just set the repeating group to show a fixed number.
5a. To delete, create a new workflow “do when condition is true (every time) and when search for cities: count is 10 [or whatever your limit is]” > delete Thing… define which thing with “do a search for cities : first item” (If I remember correctly first item should be the first entered and not the most recent, but you can check)
5b. To show a fixed number of cities but still keep those city entries in your database, change the configuration of the repeating group in its property editor: fixed number of cells.
Hope this helps!
Gaby | Coaching Bubble