Forum Academy Marketplace Showcase Pricing Features

API dynamic parameter

Hello

I try to put dynamic parameters on my api but I can’t find how to do that. I’m new on Bubble.
I want people write something in my input.
then add this “input value” in the “name=” value api.
(with or without clicking the button)

Here the Front end :

Here my api :

Could you give me some tips ?

I find some topic about that but I can’t succeed.

1 Like

Hi! :wave:

Change the market dropdown to “Action”

Now, create a workflow to run when your button is press.
In the first step, just search for your API name (Domaine dispo) :+1:

Hope it helps!

Hello

thank you. Ok I got it but how I can take the key “name” from my input dynamically ?

image

I don’t have same screen :confused:

This is becasue intially you have:

Thus, Input url`s value is ok as well.

Ok thank you.
But when button is clicked … result is not display.

I add a “display data in group text”

You have to set the State:
image
image
image
image
image
image
image
image
This was setting the State for Input element.
Now you have to proceed the same for the element ( for example Repeating Group) where you want the results to be displayed:
image
Choose the Index page. click on the i and set the Custom state.
image
image
image
image

Then set this for Repeating Group:
image

For better understanding I adivise you to watch How to Use Custom States | Bubble Tutorial - YouTube and pass Custom States lesson in your Bubble account Lessons | Bubble Choose relevant lessons and pass it several times and you will get an understanding and purpose (at least I have proceeded in this way).

1 Like

Thank you :heart_eyes:

edit : It works :slight_smile:
thank for the video

1 Like