JessicaL
02/11/2022, 4:24 PM/**
*@NApiVersion 2.1
*@NScriptType ClientScript
*/
define(['N/url', 'N/record', 'N/redirect'], function(url, record, redirect) {
function pageInit() {
}
function returnHome() {
redirect.toTaskLink({
id: 'CARD_-29'
});
}
return {
pageInit: pageInit,
returnHome: returnHome
}
});
Mike Robbins
02/11/2022, 4:31 PMN/redirect
show that it's only supported in specific server-side scripts. It doesn't appear that either portlet or client scripts are supported. https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_4424286105.htmlMike Robbins
02/11/2022, 4:32 PMN/url
module to get the URL of your destination, then use Javascript's standard window.open()
to send the user to that URL.JessicaL
02/11/2022, 4:35 PM