Frank Coniglio
05/28/2025, 8:31 PMCeligo AI
05/28/2025, 8:31 PMAI generated answer (using internal Slack threads):In NetSuite, a User Event script cannot directly trigger a Client script. This is because User Event scripts run on the server side, while Client scripts run on the client side and require user interaction to trigger the events they are tied to. However, there is a workaround to this. You can create a button in the User Event script that calls a function in the Client script. Here's how you can do it: 1. In your User Event script, use the
Form.addButtonForm.clientScriptModulePathjavascript
var form = context.newRecord;
form.clientScriptModulePath = './path_to_your_client_script.js';
form.addButton({
    id: 'custpage_my_button',
    label: 'My Button',
    functionName: 'myFunction'
});myFunctionjavascript
function myFunction() {
    // Your code here
}Celigo AI
05/28/2025, 8:32 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858879089
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857775271
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857598662
Celigo AI
05/28/2025, 8:32 PM