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.
Script to open sales order form, pre-populated?
To help resolve shipping errors, I want to create a button on a sales order called "Create Claim Order". When the user pushes that button from an existing order, I would like to open a new sales order window with some information already populated. For example, I want to have the customer, the class, the shipping address copied from the original order. I also want to populate some custom fields, such as creating a link back to the original order.
I started implementing this by creating a button that, when pressed, invoked a SuiteScript to create the sales order, save it, and then change the window.location to the newly created sales order. The big problem is that I don't want to save the sales order first. I really just want to open a new sales order in a ready-to-edit, unsaved condition, with certain values already populated.