Customer wise filtered search hyperlink. View search is customer record as link

Combined ‘<br><div style=”font-size:12px;color:#666666;”>TOTAL REVIEWS</div><br>’|| ‘<span style=”display: inline-block; padding: 8px 16px; font-size:15px; color: #000000; font-weight: bold; text-decoration: none; border-radius: 4px;”>’ || {custentity_jj_total_feedback_received} || ‘</span>’|| ‘<a href=”https://td2976892.app.netsuite.com/app/common/search/searchresults.nl?searchtype=Custom&CUSTRECORD_JJ_CUSTOMER_NAME=’||{id}||’&style=NORMAL&report=&grid=&searchid=1537&“ target=”_blank” style=”display: inline-block; padding: 8px 16px; background-color: #007bff; color: white; text-decoration: none; border-radius: 4px; transition: background-color 0.3s; font-style: italic;”> View Reviews </a>’ Specif part ‘<a href=”https://td2976892.app.netsuite.com/app/common/search/searchresults.nl?searchtype=Custom&CUSTRECORD_JJ_CUSTOMER_NAME=’||{id}||’&style=NORMAL&report=&grid=&searchid=1537&“ target=”_blank” style=”display: inline-block; padding:… Continue reading Customer wise filtered search hyperlink. View search is customer record as link

Add Hyperlink to Advanced PDF/HTML Templates that will Open in a New Window/Tab

When printing records in NetSuite using Advanced PDF/HTML Templates, there are third party libraries used for generating the documents to PDF format. One of the major libraries is Freemarker (Engine template) with BFO (Used to convert XML to PDF).  According to BFO documentation, the “href” tag is supported but with some limitations. Given the example:   <a… Continue reading Add Hyperlink to Advanced PDF/HTML Templates that will Open in a New Window/Tab

Display applying transaction as hyperlink in saved search

Create a transaction search Provide the required criteria On the results tab, along with other columns ad the following formula to display the hyperlink Formula (Text) |‘<a href=http://system.netsuite.com/app/accounting/transactions/purchord.nl?id=’||{applyingtransaction.internalid}||’>’||{applyingtransaction.number}||'</a>’ Make sure to copy the url from the netsuite itself and in the place of internal ID, you can enter it with the {applyingtransaction.internalid} between the pipeline… Continue reading Display applying transaction as hyperlink in saved search

Set link text instead of the URL itself on custom body hyperlink field

There are instances where the user would like to set a link text that would mask the actual URL that is to be set on a custom body hyperlink field. If the script that is to be used is not a Suitelet, a getField would be used instead of addField. Below is a sample code:… Continue reading Set link text instead of the URL itself on custom body hyperlink field