Refresh page with results on click of button

I have a screen with 1 input field (First Name) and a button (Search). I created a workflow to to get data on click of button based on the data entered on the screen.

I want to populate it in a table/card just below the Search button. How do I do that?

Hey @satyaganti :waving_hand:

Just to clarify, you don’t want the search to be automatic when the user types something in the search bar. You want the filter to apply only once the user clicks on the button.

Is that right?

Yes, that is correct. Like searching for an employee by first name and last name. Let the user enter data and click the ‘Search’ button. The results should be populated down.

Hi,

I think a bit more context would help here, as there are several ways to approach this. Do you already have the data queried (for example if you aldready have a collection of all your users)? You mentioned a workflow to query the data, but that might not be necessary if the data is already stored in a collection or view, you would just need to bind the view and apply a filter using the input variable.

If you want to create a dedicated query request, you’ll need to provide more details about your backend setup.

I would recommend checking out the WeWeb Academy and the WeWeb YouTube channel to learn the basics.

Hope this helps,
Hugo from OneClick