`params.portlet.clientScriptModulePath = '/SuiteSc...
# suitescript
s
params.portlet.clientScriptModulePath = '/SuiteScripts/repo/portlets/main.js';
If I try to do something like this I get:
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "SSS_INVALID_UI_OBJECT_TYPE",
  "message": "That operation is not supported for this type of UI object: html. It is only supported for type: form.",
  "stack": [
    "attachClientScriptFileAndReturnModulePath(N/serverWidgetUtility)",
    "render(/SuiteScripts/repo/portlets/main.js:9)"
  ],
  "cause": {
    "type": "internal error",
    "code": "SSS_INVALID_UI_OBJECT_TYPE",
    "details": "That operation is not supported for this type of UI object: html. It is only supported for type: form.",
    "userEvent": null,
    "stackTrace": [
      "attachClientScriptFileAndReturnModulePath(N/serverWidgetUtility)",
      "render(/SuiteScripts/repo/portlets/main.js:9)"
    ],
    "notifyOff": false
  },
  "id": "",
  "notifyOff": false
}