I think there is an issue when I create a workflow with an action to change a variable name.
Create the workflow
Choose action: change variable value
Variable: choose the boolean variable
New value: it will default to false, don’t change this.
Now when you test the action you’ll see that it sets the variable as ‘undefined’ instead of false
If you now click on the variable value dropdown and select ‘true’, then click again and select ‘false’ and try to test the action again you’ll see that it now sets to false. So the default dropdown value is not being set correctly.
Hello @Joyce. My intention is to set the ‘termsSubmitted’ variable to ‘false’ and not ‘undefined’.
Have a look at the screenshot, you prepare the action and leave the “New value” field to the default value, which is “false”, then hit “Test action”. It will set to ‘undefined’ which is not correct. It should set to false.
Looks that the “New value” dropdown default value ‘false’ is not tied correctly to some backing variable if you don’t click and change it to something else.
I mean, ‘undefined’ is not even a choice on the “New value” dropdown.
Hi @brunoconleite, yes, I’ve had a look at the screenshot. However, since your variable is set as “false” by default in your project, I’m wondering if the fact you are attempting to “change the variable” to the same value (i.e. false) may be causing the issue.
I will investigate with the dev team and get back to you.
@Joyce Thanks. But I don’t think that is the case. The variable could be false as default, but later changed to true. The action is another step of changing the variable value, independent of what it was when created.