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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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