<@U51CKS7Q9> I tried using it but it return an err...
# suitescript
s
@b4bdel I tried using it but it return an error
b
whats the error?
s
Cannot set property "clientScriptModulePath" of undefined to my script
b
define([‘N/search’, ‘N/ui/serverWidget’], function (search, ui) { function render(params) { var portlet = params.portlet; params.portlet.clientScriptModulePath = ‘/SuiteScripts/……..js’; portlet.title = ‘Test’; var fld = portlet.addField({ id: ‘custpage_content’, type: ui[“FieldType”].INLINEHTML, label: ‘Details’ }); var content = ‘’; content += ‘<body style=“height:100%;width:100%;margin:0;“><div id=“main”>Hello</div></body>’; fld.defaultValue = content; } return { render: render }; });
this works perfectly fine for me
s
What type of portlet is it ?Simple form?