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
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
how do i embed a link behind text in JS?
function afterSubmit(request, response){ // sends an email to the customer with PDF attached var customer = nlapiGetFieldValue('entity'); var email = nlapiLookupField('customer', customer, 'email'); /* var emailchoice = nlapiLookupField('customer', customer, 'custentityemail_invoice_checkbox_cust'); */ if (email != '' && email != null && customer=='23') { var recordid = nlapiGetRecordId(); var link = 'https://system.netsuite.com/app/site/hosting/scriptlet.nl?script=164&deploy=1&custparamso_id='+ recordid; var recordtype = nlapiGetRecordType(); var template = 29; // Invoice Template ID var mailRec = nlapiMergeRecord(template, recordtype, recordid); // Merge Template Internal Id 3 with Record var records = new Object(); // Create a new record object records['transaction'] = recordid; // Declaring a Transaction Record var attachment = nlapiPrintRecord('TRANSACTION', recordid, 'pdf', null); // Print the Merged Record as PDF var loadrecord = nlapiLoadRecord(recordtype, recordid); // Load the Record nlapiSendEmail(-5,
0