Triggering of API

I have a dropdown named- supplier's name in which supplier's name is coming from API response. Currently what happens is as soon as page loads that API response is also loaded in dropdown . Is there a way, in which I want the names in dropdown to be loaded only when user starts written some name in input..otherwise empty.

Can you help me out?

I'm not entirely confident I understand what you are trying to accomplish, but you can use the event handlers within the select component to trigger a query on a variety of events.

1 Like

Hi ishi8, You could also use a ternary in the Data input for this Select component so that the Data is only populated when a user has entered an input value. Here's an example:

Hope that's helpful!