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