Hi! I’ve been wracking my brain over this problem for days now. Bubble doesn’t replace the placeholders with their actual values. Instead of showing, for example, the name of the city, it displays ‘index’s UserCity’ instead.
- You’re looking at the initialisation response. This will use whatever parameters you specified in your API call, hence it uses those values.
- To use it in your app, you need to uncheck the parameters from private so that you can dynamically specify these values. Use an action for your API call, pass the values you want, and you’re off to the races.
Hi George! Thank you! I tried it, but it is still not working. I tested a bit on the index page using “index’s WeatherCondition” and it showed the weather “few clouds”, but in the results page it only shows “index’s UserCity” and “index’s WeatherCondition”. This really baffles me.
Pretty sure you didn’t follow what @georgecollier tell you. Did you remove private checkbox? Did you go after to your API call to set your dynamic data using expression composer (in workflow if action or in Get data From API if data)?
You’re clearly passing a text value to the prompt (index's UserCity
). You can use a dynamic expression by clicking on the input box next to UserCity, clicking Insert dynamic data
, and adding whatever city you want there.
I’m wondering where theses users learn to use API Connector this way. Did you watch a youtube tutorial or ask chatgpt for that @charlesravndal
It’s been the third time in a week or two that someone tried setting “dynamic” value this way…
Yeah I’d noticed that too…
The UserCity is connected to the inbuilt geolocation in Bubble.
Yes, I used ChatGPT.
Well that explains it…
In any case, you can’t ‘type’ expressions in Bubble, you have to build them with the expression builder.
So just replace your typed text with an actual Bubble expression and it should work.
hint: “index’s user city” should be blue – that tells you it’s dynamic (: GL
It’s working now! Thank you very much for all the help!