Hi
How can I use a radio button’s value (which has just two distinct values true and false) in a boolean variable?
I have defined a business variable e.g “testVar” which has a boolean field say “bb”.
How can I bind test.bb to radioButton.value and return “testVar” as the formOutput?
Thanks in advance
In the Output Operation of the task you need to use some code to change the return string to boolean
so for example
Variable testvar
Action (javaMethod) Setbb
groovy script
if(returnVariable.equals(“true”)) {return true;}
else{return false;}
That will do it.
regards
Seán
PS: If this reply answers your question, please mark a resolved.