Need a little guidance.

The form has a TrueFalseCheckBox that we would like to be YES or NO.

in the onload event for the TrueFalseCheckBox field I have:
form.setValues("TIPS_YES_NO", [ "YES", "NO" ], [ "YES","NO" ])
form.select("TIPS_YES_NO", [ "YES" ]);

And that works good.

In the workflow I have a Condition activity
(function (){
Packages.java.lang.System.out.println("TIPS SELECTED: "
+flowdata.get('start/request_form/TIPS_YES_NO'));
if (flowdata.get('start/request_form/TIPS_YES_NO') == 'YES' ) {
return true;
} else return false;
})();

the printing of the TIPS_YES_NO value is showing as "false" regardless
of what I choose. What am I not getting about this? I would have
thought it would be YES or NO.

Thanks
Chad


--
ncisrael
------------------------------------------------------------------------
ncisrael's Profile: https://forums.netiq.com/member.php?userid=769
View this thread: https://forums.netiq.com/showthread.php?t=50977