Ron
02/05/2025, 9:09 PMCeligo AI
02/05/2025, 9:09 PMAI generated answer (using internal Slack threads):To place a custom button on a transaction form, you can use SuiteScript or a workflow. Here are two methods: 1. SuiteScript Method: You can use the
form.addButton
method in SuiteScript to add a custom button to your form. Here is a sample code snippet:
javascript
function userEventBeforeLoad(type, form) {
if (type == 'view') {
form.addButton('custpage_mybutton', 'My Button', 'myFunction()');
}
}
In this example, 'custpage_mybutton' is the internal ID of the button, 'My Button' is the label that will appear on the button, and 'myFunction()' is the client script function that will be called when the button is clicked.
2. Workflow Method:
You can also add a button using a workflow. To do this, create a new workflow with a 'Button' action. This will add a button to the form when the workflow conditions are met. You can then define what happens when the button is clicked by adding actions to the button.
Remember to assign the workflow or script to the correct form and record type.
******
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
02/05/2025, 9:09 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836652517
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83038
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828052104
Celigo AI
02/05/2025, 9:09 PM