-
How can we align sublist fields to the leftmost position when using `sublist.addField`?
How can we align sublist fields to the leftmost position when using sublist.addField? In a custom transaction, we added a sublist field using a UserEvent before load script. This field is an item field, and we have hidden the standard item field to use this script item field instead. However, currently, the field is…
-
Attach Automation to new email window?
Is it possible to attach any kind of automation to the Email Message window that pops up when you go to a Project, click on Communication, Messages, Email? Specifically this window: Either a Workflow or User Event would be fine, but so far I can't find a record type to deploy either against.
-
How to determine in SuiteScript which print button was pressed?
Hello everyone! I need to determine in the script which print button was pressed among the set of "print" buttons in a record. In the Sales Order form, I have the 'Print' button, and it has sub-options: In the UserEventScript, after it's pressed, I can identify that the event is 'print,' but I also need to know if 'Print…
-
Error When Conditionally Loading Custom Modules in SuiteScript
Hello everyone! I am working to optimize the performance of User Event Scripts applied to transactions, written in SuiteScript 2.1. During my debugging, I discovered that significant delays occur when my script loads certain Custom Modules, which are also written in SuiteScript 2.1 and function as libraries. To enhance…
-
SuiteScript: Invalid date value (must be MM/DD/YYYY) error
I am relatively new to SuiteScript. When attempting to set the date value, the error "Invalid date value (must be MM/DD/YYYY)" is generated. See code below. Any suggestions would be greatly appreciated. define(['N/record', 'N/format'], function(record, format) { function myBeforeSubmit(scriptContext) { var currentDate =…