Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Problem with setting default field values for Transfer Order
I have a suitescript to facilitate users who want to create a Transfer Order from an Item Receipt.
How it works:
- Custom button on Item Receipt that says "Create TO" which basically launches a new TO record page, but with a custparam in the URL which contains the Item Receipt ID
- On BeforeLoad user event for TOs, I check if that custparam is in the URL. If yes, I use nlapiSetFieldValue to set some of the TO fields based on the Item Receipt field values
This all works fine and I can see the fields in the TO get populated as the page loads, however as the TO page finishes loading, some of the fields (From Location, Department, Rate (in Item sublist)) get reset back to blank values.
0