Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Pre populating custom records
I’m new to NetSuite so be gentle
I’ve created a custom record type called ‘Rooms’ which contains fields such as height, width, etc. I managed set the parent to ‘Item’ with the help of the NS staff so now a table with ‘New Room’, ‘Attach’ and ‘Customise View’ buttons appears in a tab in the Inventory Item Form.
Here’s my problem:
I want to be able to pre populate the table (mentioned above) with values of my choice. E.g. when I create a new inventory item and click save, in the background I want to be able to add a few rooms with height and width defined to the record being saved. Now I know I need to implement a server side script that fires on the beforesubmit/aftersubmit event. The question is, how?