Check box field value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2013 08:21 AM
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
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2013 10:00 AM
Try 'true' or 'false' in quotes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2014 12:32 PM
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