Chris Raitzyk
08/11/2025, 6:34 PMCeligo AI
08/11/2025, 6:34 PMAI generated answer (using internal Slack threads):To show a button on a Customer record that would launch the Log Task form, you would need to use a combination of User Event (UE) and Client Script (CS) in NetSuite's SuiteScript. The User Event script would be used to add the button to the Customer record form, and the Client Script would be used to define the action that occurs when the button is clicked (i.e., launching the Log Task form). Here is a simplified example of how you might accomplish this: User Event Script (UE):
javascript
function beforeLoad(context) {
context.form.addButton({
id: "custpage_log_task_button",
label: "Log Task",
functionName: "launchLogTaskForm"
});
context.form.clientScriptModulePath = "SuiteScripts/launch_log_task_cs.js";
}
In this User Event script, a button labeled "Log Task" is added to the form. When clicked, it will call the launchLogTaskForm
function, which is defined in the Client Script.
Client Script (CS):
javascript
function launchLogTaskForm() {
var taskUrl = url.resolveTaskLink('EDIT_TASK');
window.open(taskUrl);
}
return {
launchLogTaskForm: launchLogTaskForm
}
In this Client Script, the launchLogTaskForm
function is defined. When called, it opens a new window with the URL for the Log Task form.
Please note that this is a simplified example and may need to be adjusted based on your specific requirements and environment.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/11/2025, 6:34 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83636
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831627607
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828340828
Celigo AI
08/11/2025, 6:34 PM