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
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?