Set a dynamic parameter in API Call with a value from a form

Database & APIs

I'm trying to set up an API call where the URL has a dynamic parameter that I want to retrieve from the form filled out by the user (on a 'form' page, they fill in the city and then validate it; I want that city to be added to the API call URL), but I can't get it to work.

The API looks like "/maps/api/place/textsearch/json?query=restaurants%20in%Marseille"

Where "Marseille" is the city I want to replace

I have linked the input from the user's form to Firebase through the 'Create Document' action via the 'Validate' button, so I'm able to retrieve and store the information in Firebase. However, I don't know how to retrieve it as a variable in the query parameters.

What have you tried so far?

I tried creating a variable in App States and attempted to add an action before (and also after) the 'Create Document' to 'Update App State' in order to store the variable here as well, but in the query parameters, I'm not sure what to put.

(in the screenshots, ville means city in french)

Did you check FlutterFlow's Documentation for this topic?
Yes
4
3 replies