Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Empty fields not returning '' ???
I may be going insane here, but here's what I am doing -
if( invoice.getFieldValue('custbody_linked_journal')=='') {
So normally, if the field I am checking has no value, it will read '', so I can then do stuff.
I am running this code, and that if is NOT returning true. I have checked the value using log execution, and all I see is blank. And I KNOW this used to work. But now, no matter what I do, empty fields are not returning '', nor null, nor anything I can actually compare against.
Crazyness??
0