Hi,
I have a custom checkbox field on a record and I am trying to extract it's value using suitescript.
I have a line
_var HQCheck = search.lookupFields({type: 'JOB', id: CC, columns: ['custentity_hqcc'] });_
that pulls back something like..
_{"custentity_hqcc":false}_
So I now need to return just the "false" or "true".
I know it must be simple, but whatever I've tried so far doesn't work.. I will keep trying but if someone can help that would be great..
I've tried.
var HQCC = HQCheck.custentity_hqcc;
var HQCC = HQCheck.custentity_hqcc[0].text;
var HQCC = HQCheck.custentity_hqcc[0].value;
and others I can't remember.
Thanks!