Skip to main content
← Data, API & Backend
Data, API & Backend April 19, 2023 Β· 2 replies

GET id of a list item & POST it

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hello everyone πŸ‘‹
I'm in the middle of creating an application for creating sports events. For this, I would need to create a form that contains in a first page, the list of stadiums where it is possible to organize the event. The user just has to click on the stadium he wants and the id of the stadium will be POSTed in the database.
The problem is that I don't know how to get the stadium id to be able to send it to the database.
Does anyone have an idea? πŸ˜€

(btw i use Xano backend)

2 replies

ilia April 19, 2023

Do you have a list of stadium in your database?
It’s pretty simple to do, you just have to choose what you want to post, which for your case will be ID

Multy April 25, 2023

Thanks for your response !
Yes, I have one. Currently, I display this list in the first page of the form and it is possible for users to use a search bar to find a stadium more quickly (see the first picture). I also have a POST request that retrieves the user.id and the stadium ID (see second picture). But I don't know how to link this request with Bravo so that it is sent to DB as soon as a user clicks on one of the stadiums.

attachment

attachment

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord