ClientScripts not available in External URL


am running a simple suitelet with a form, to which I am adding a clientscript.

form.clientScriptModulePath = './clientScript.js';

It works fine, as long as the suitlet is run from the ‘normal’ url. But if External URL is used, clientScript seems to be completly ignored, no error, just ignored.

enter image description here

My questions is… Are Client Scripts not available for External url’s in NetSute ? Or is there some workaround for it ?

I didn’t find any documentations for external url restrictions.

Rookie Asked on June 25, 2021 in SuiteScript.
Add Comment
2 Answer(s)

Make the file used for the client script available without login

Advanced Answered on June 25, 2021.
Add Comment

I faced this issue once, and it was fixed when I turned on the “Website” feature (under Setup –> Company –> Enable features)

Beginner Answered on August 9, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor