I want to ask question about Select in Retool

I am going manage booking system using retool service.

I have one Form widget, and In Select, after choose item, if I click submit button, I want to send API request
But now when I choose item, even I didn't click Submit button, API request is sending automatically.

I want someone support me.
Thanks

Hi @Lin,
Can you please send me your app's exported JSON file and I will take a look at it to see what the issue is. You can export it like this (click on the 3 dots next to your avatar) :

thanks!

Is your API setup to run automatically?

If so, it's likely reacting to the change of your 'select' value.
The fix for this should be changing its run behaviour to manual, unless you have a need for it to also run automatically.

1 Like

Many Thanks ferret141.
It is working perfectly now.

I want to ask one more question.
When user click button, I want to show some loading on button during the api request.

Is there any possible way to do that ?
Thanks

Yes, there should be a 'Loading' setting for the button.

In there you want to set something like {{ myAPIquery.isFetching() }}

1 Like

You are always perfect solution provider,
Many Thanks