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.
Custom scripted button for redirecting record
I am trying to add a button to the Cash Sale screen that will automatically redirect the user to the Edit Item Fulfillment Screen associated with the same sales order as the original Cash Sale. I was provided pseudo code to make this happen and here is what I translated this to:
function myBeforeLoadFunc(type,form) { if (type == 'view') { form.setScript('customscript5'); form.addButton('custpage_edit_fulfillment_button','Edit Fulfillment','editfulfillment()'); } }This is set as a type "user event" deployed on the Cash Sale screen before loading the page. This is currently running correctly, at least to the point that it is displaying the desired button on the screen.
0