Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Help set a default value for Department
Hello,
I spoke with Netsuite support about setting a default value for the "department" field on a custom form. They advised that I could run the following script as a User Event Script.
I don't know how to script or set this up.
Outcome:
Set department on a sales order to a default value: department field = icandy Creative
Code Provided by Support:
*** START CODE ***
var customForm = nlapiGetFieldValue('customform');
if(customForm == 100) // You may simply replace '100' with the internal ID of your custom form.
{
....place your code here....
}
*** END CODE ***
My Code:
// *** START CODE ***
var customForm = nlapiGetFieldValue('customform');
if(customForm == 117) // You may simply replace '100' with the internal ID of your custom form.