Skip to content

Table data search but triggered by button instead #10402

Answered by melohagan
0afcode asked this question in Help
Discussion options

You must be logged in to vote

Hey @0afcode

If you have followed the steps in option 2, then this is fairly easy to do!

Step 1 - Add your search button

Add a container and nest your search field within it. Next add a button. You can set the direction of the container to get the button to sit nicely beside the text field.

Next Define actions for your button. Add the Update State action, with a key and value bound to the search field:

Step 2 - Filtering on app state

We can now use the App State that we have saved to filter on. Because the app state is only updated on the button click in this case, the filter will only trigger when the button is clicked.

Click Define filters on the Data provider of the table, and use th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0afcode
Comment options

Answer selected by melohagan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
bb-filtering Filtering data app-state Using the Update State action in Budibase
2 participants