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!
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 Button on Form in View Mode.
I am trying to add a button to the Sales Order form. This button should be accessible when viewing the Sales Order. Upon clicking the button, I would like the user to transfer to the Customer Deposit Page.
I have created a custom form for our Sales Order.
I have created the following javascript file, and uploaded it to the File Manager/Suite Scripts.
// Custom Code
// Add Customer Deposit Button to Sales Order/Customer
function myBeforeLoadFunc(type,form)
{
if (type == 'view')
{
var url = nlapiResolveURL('TASKLIST','EDIT_TRAN_CUSTDEP');
alert(url);
form.addButton("custpage_customerdepositbtn","Customer Deposit","document.location='"+url+"'");
0