How to change the value of a select by clicking a button?

I have a select with a label “Sim“ value “true“ and label “Não“ value “false“. How can i change the value of this select by clicking a button?

Hi Pedro :waving_hand:

You could try this simple approach:

Create a variable that will change from true to false and then on button click you run a workflow that changes this value.

1- Create a text variable (I called mine TrueFalse)
2- In your select element bind the “Initial Value” setting to this new variable


3- Run a workflow on button click that verifies if the value of “TrueFalse” is true or false (In my case I chose to verify if its false)

4- Change the TrueFalse variable value

Hope this helps!

1 Like