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.
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