Hi, I have a custom checkbox field on a record and...
# suitescript
b
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!
s
can I help you with this?
j
what about HQCheck["custentity_hqcc"]?
🙌 1
s
it doesn’t work that way
b
@Jorge Salas that appears to have worked. I got a one word value of “false” back on my last test
🎉 1
✅ 1
j
But @superman1987417 said it "doesn't work that way" 😛
elmo fire 1
😂 2