Variable update using text input

I currently have a search window (Text Input) which takes the text user has entered. And I have a button which is used as a trigger for this to work together which has an “Action” which is required and the respective object table then updates based on set of this variable(I pass the searched text to a variable which updates on click of a button).

User types in search box → variable NOT updated yet
User clicks button → action runs with OLD variable value ← :cross_mark:
User clicks away first → variable updates
User clicks button → action runs with CORRECT value :white_check_mark:

But this set up is currently causing an issue which results in the user needing to click the button twice for the flow to exactly complete, which is causing the app to behave in a which was not expected.

Is there a walkaround to this?

The requirement is “User should click the button inorder to apply the searched text as a filter on the object table”

Hey @Benutzer7!

What is you action used for? It seems that you want to filter your table and execute an action at the same time? Or maybe you just use this action to filter the table?

By default, a Text Input widget is automatically updated when user write inside. If you want to wait the user to press the button to update the table, here is the way I would recommend:

  • Configure the button to trigger an event on click that will copy the input variable into another variable
  • Set the copied variable as a filter in the object set you are using in the table

This way, the filter isn’t updated until the user press the button.

But if your goal is only to filter your table, I would recommend you to use the Filter list widget with a keyword filter. It’s the best way to do it.

I hope you find this helpful. Feel free to ask if you have any question.

Nathan :slight_smile: