Clear input fields on button click (input fields in datagrid)

I can’t figure out how to clear input fields after a button click. The input fields are in a custom cell in a datagrid and they aren’t showing up in the ‘From Components’ variables. Any suggestions please?

Thanks!

Since you are using a custom cell you don’t have the input auto-managed by the datagrid. You need to control it with a variable and workflow like this example or this other example.
Once the input is correctly bound you can clear the corresponding value (set is to null) in the variable and the input will be cleared.

1 Like

Perfect, thanks @dorilama.

1 Like

I read through these directions but cannot for the life of me figure this out. Can anyone please explain a bit more in detail on how to clear input fields on button click (basically reversing the change sequence from @dorilama 's example?

just reset the corresponding value of the variable that is bound to the input.
Since this topic is resolved you can start a new one where you can show what you tried and what is the problem that you are facing. This way you can have better help and other people with the same problem can easily search for it.

1 Like

Hi,
in the workflow you can choose the step: reset variable.
but then - you dont reset a global variable.
in the variable-selection-field you can choose the input field itself.
i need some time to find this solution in this thread here: https://community.weweb.io/t/resetting-initial-value-on-input-field-after-cancelling-edit/5287