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.
Experience NetSuite Next firsthand Bellevue Club Hotel, 11200 SE 6th St, Bellevue, WA 98004 What to expect: Join this interactive event designed for companies exploring modern ERP solutions. Inside the Suite gives you a hands-on opportunity to experience NetSuite through product demonstrations and expert-led discussions.…
Connected data and AI-powered insights for a more resilient nonprofit Which donors sustain your mission—and where is funding at risk? When giving history, pledges, and financial data sit in separate systems, answers take too long. Join this product demo webinar to see how NetSuite Data Intelligence brings together data…
Drive better outcomes with AI built into NetSuite Next The Omni King Edward Hotel,37 King St E, Toronto, ON M5C 1E9, Canada 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 NetSuite for…
Have questions about NetSuite's procure-to-pay process? Ask an expert! Join our Ask An Expert Live session on November 19, 2026, at 1:00 p.m. ET, featuring @Gaurav Agrawal , Senior Manager at Spaulding Ridge, recognized SuiteMaster, Oracle ACE Associate, and one of our top NetSuite Support Community contributors. Bring…