This is in Tips, but it could be considered as a Bug @Bubble . Anyway, since I’ve encountered ths issue twice theses last two months, here a warning you may find out helpful.
In the API Connector, you definied your parameters with exemples like here :
Some of them may be optionals, or sometimes must be set empty in your request. If so, you may leave the fields empty in your api call :
Seems logic right ? “hls” is empty, so the request will be. “dash+hlsfmp4” is empty if the parameter is false
Actually, not. For both, parameters defined at first will be applied !
Values set in the API Connector or in the Plugin Bulider are not just some indications for the editor later on or some test values for initializing your request, there actually are the default parameters applied whenever another value is not set.
Response from @neerja : You can type an empty space instead of leaving the parameter input empty to get the desired result.
Be sure the space does not break anyhting, especially if it is a URL parameter.
Please, @Bubble, if the user cleans a field, consider this as an empty value, and do not automatically set the value with the default value used during initialization.
This is a known behavior. Take time to empty your data in API Connector.
I think that in some case, it’s a good thing to have a default value. But we don’t have an option to set this. I Think bubble should have a checkbox that we can use to say if we want to keep it as default value or not
I lost some hours due to this behaviour the other day. It’s really not obvious to the users. In the case that I do want to use the values from the API Connector, I have 3 options:
1.) Mark it as private in the API Connector
2.) Leave it as it is in the Editor
3.) Delete the entry in the Editor
On the other hand there seems to be only 1 way to have an empty parameter by entering an empty space in the Editor.
From a UX standpoint the obvious choice of having an empty parameter is by deleting the pre-fill in the Editor.
It would help tremendously debugging specific API situations.
Just ran into it myself setting up Stripe and I had to create new API call just as a workaround.
e.g. blank state is impossible to create so there is a need for API call “Create customer” just before creating checkout session if one doesn’t no want to do that before that.
Haha this is not a joke. I’m stuck using my own plugin because blank states are still impossible. @allenyang@emmanuel Could we get an insight from you about this ? We have been several users pointing to this for more than two years.
Can’t you had an option for each field : “don’t use this value used for initialization if the user leaves the field empty” ? or anything else solving this issue ?