Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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