Melissa
04/23/2025, 1:14 PMmyForm = serverWidget.createForm({
title: 'my form',
hideNavBar: true
});
myForm.clientScriptModulePath = 'SuiteScripts/PathToScript/myclientscript_cs.js';
But this time, I am not using the serverWidget.createForm() -- instead, I am loading an HTML template, rendering it with N/render and writing that. I tried to add a client script in the dependencies that I set, but that doesn't work because it's not seen as a SuiteScript. I can't put the code right into a custom JS file, because it is trying to make use of the Google Maps API, and maps won't load that way. Any help is appreciated! Thank you!alien4u
04/23/2025, 2:02 PMMelissa
04/23/2025, 2:08 PMserverWidget.createForm
Is there any way to get a client script into the Suitelet in that example, I think is another way I could ask thisalien4u
04/23/2025, 2:10 PMalien4u
04/23/2025, 2:15 PMMelissa
04/23/2025, 2:15 PMaddCustomDataSource
last night, but couldn't get it to work. The error said it wasn't the correct datasource Object, but I see some differences in how I did it and your example. I hadn't worked with addCustomDataSource
before last night. Thanks again!alien4u
04/23/2025, 2:17 PMMelissa
04/23/2025, 2:20 PMerictgrubaugh
04/23/2025, 2:29 PM<script>
tag to load your Client Script into the page, but none of its entry points are going to fire since you're not using native UI components, and you may need to make the file available without login.Melissa
04/23/2025, 2:32 PMMelissa
04/23/2025, 2:34 PMMelissa
04/23/2025, 10:29 PMalien4u
04/23/2025, 10:30 PMMelissa
04/23/2025, 10:33 PM