Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Open Popup from link (not from button)
Hello,
it is possible to open a popup from a button like this:
form.addButton("custpage_name", "label", [url and parameters]);
However, how can I open a popup from a link? My code looks like this:
var suiteletUrl = nlapiResolveURL('SUITELET', 'customscript_av_deployment_popup', 'customdeploy_av_deployment_popup', false);
var popupParams = "width=750, height=400";
var setWindow = "window.open('" + suiteletUrl + "','NAME','" + popupParams + "')";
form.addField("custpage_popup", "url", "", null, "customscript_av_deployment_popup").setDisplayType("inline").setLinkT ext( "click me").setDefaultValue(setWindow);
I get this error:
-You have entered an Invalid Field Value window.open('/app/site/hosting/scriptlet.nl?script=184&deploy=1','NAME','width=75 0, height=400') for the following field: custpage_popup