Check box field value

nate_weldon1
Kilo Contributor

This is going to be a silly question but can somebody tell me what the value of a check box field is supposed to be? I've tried true/false, 1/0, active=true, etc.

Am trying to modify the description of a request task based on record producer check box being selected. Here is a copy of my code:
var fwd = producer.fwdEmail.getValue();
if (fwd == 1){
current.description+="\nForward Email to: " + producer.fwdEmailTo.getDisplayValue();
}
var copy = producer.copyG.getValue();
if (copy == 1){
task.description+="\nCopy G: Drive to Manager";
}

Am wracking my brain on this one and can't seem to find the answer in the wiki.

thanks,

Nate Weldon

2 REPLIES 2

Mark Stanger
Giga Sage

Try 'true' or 'false' in quotes.


Thanks Mark,



That was exactly what I needed for the "IF" script in the workflow editor. I had a check box choice that I wanted to send to a specific catalog task (the other check boxes all go to a different team), so I needed to use the IF script to sort it out. I tried several different things before coming here and finding your answer...which was exactly what I needed.



thanks again,



Richelle