Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Checkbox field values inconsistent
I'm noticing that custom field types that are checkboxes are inconsistent in terms of how they accept or read values:
For example, on a custom record, if I have a custom field "custrecord_mycheckbox" setup as a checkbox, then 2.0 says I must set this (and assume read) as a boolean:
record.setValue({fieldId: "custrecord_mycheckbox", value: true});
and
record.getValue({fieldId: "custrecord_mycheckbox"}); returns true or false
If I attempt to do set this using 'T' or 'F' like with 1.0 methods, I get this error:
You have entered an Invalid Field Value T for the following field: custrecord_mycheckbox
However, if I add a dynamic field in beforeLoad to the record "custpage_mycheckbox" and type it as a checkbox, and I try and set the defaultValue using boolean, I get this error: