Update query parameter on dropdown change

Hi all,

I am just starting to use this platform. I have a dropdown on top of my page and I have a scroll view that contains a list that gets populated by calling Rest API endpoint. I need to be able to pass the selected value from the dropdown as a query parameter value for the Rest API Get. I created a data variable that is bound to the list of items. Is there a way to do this?

Thanks,
Firas

Hi! Sure. Tie the selected value of the dropdown to a page variable for example, then use that page variable in the rest API get (e.g. when the dropdown onChange event fires, filter the list and/or fetch it again).

Thanks @Mevi! That did the trick.

1 Like