In our business, we need lot control, but our products don't ever expire. To avoid confusion with our users, I'd like to hide the 'Expiration Date' column that is on the inventory detail pop-up. This would apply on the Inventory Adjustment form, the Item Receipt form, the Item Fulfillment form, and any other form where inventory detail is needed.
I have tried writing a Suitescript using the Hide a Column in a Sublist article as a guide ( ). However, mine just isn't working.
http:///** * @NApiVersion 2.1 * @NScriptType UserEventScript * @NModuleScope SameAccount */ define(['N/ui/serverWidget', 'N/log'], (serverWidget, log) => { function beforeLoad(context) { if (context.type === context.UserEventType.EDIT) { hideColumnField(context.form, 'item', 'item'); } } function hideColumnField(formObj, sublistId, fieldId) { try { const formSublist = formObj.getSublist({ id: 'InventoryAssignment' }); if (formSublist) { const formField = formSublist.getField({ id: 'expirationDate' }); if (formField && typeof formField !== 'undefined' && formField !== null) { formField.updateDisplayType({ displayType: serverWidget.FieldDisplayType.HIDDEN }); } } } catch(error) { log.error({ title: 'Error occurred when hiding field', details: JSON.stringify({ sublistId: 'InventoryAssignment', fieldId: 'expirationDate' }) }); } } return { beforeLoad: beforeLoad }; });
Any suggestions would be greatly appreciated!
—Ian
It looks like you are new here. Sign in to continue.
Turn 2026 performance into more informed plans and clearer board reporting Year-end reporting and annual planning are closely connected for software finance teams. Leaders need to understand 2026 financial results and SaaS KPIs, explain the factors behind performance, and translate those insights into credible budgets and…
In this Ask A Guru Live, our Guru, Clarisa De Torres, will be answering your questions about Advanced Accounting. RSVP now on this event that will be held on November 25, 2026 at 1:00 PM - 2:00 PM ET.
Experience NetSuite firsthand B Ocean Resort Fort Lauderdale Beach, 1140 Seabreeze Blvd, Fort Lauderdale, FL 33316 See how NetSuite can help your business gain visibility, streamline operations, and scale with confidence. Join us for an interactive event where you'll experience NetSuite firsthand through a hands-on…
Drive better outcomes with AI built into NetSuite Next B Ocean Resort Fort Lauderdale Beach,1140 Seabreeze Blvd, Fort Lauderdale, FL 33316 Join NetSuite experts for a free half-day event where you'll get a tour of NetSuite Next, explore AI-powered capabilities built into the platform, and learn practical ways to optimize…