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!
version 2007 has killed my script...
Hi everyone,
I have been hunting through the other scripts that are attached to this particular record in netsuite.
I have included all the snippets for the code that is on this record.
function fieldChanged(type, name)
{
/*
FIELDS USED
*/
var js_customer_id;
var js_customer;
var js_job_type;
//var js_is_job;
//CODE BLOCK
if (name == 'customer')
{
js_customer_id = nlapiGetFieldValue('customer');
js_customer = nlapiLoadRecord('customer', js_customer_id);
js_job_type = parseInt(js_customer.getFieldValue('jobtype'));
js_is_job = js_customer.getFieldValue('isjob');
if (js_is_job == 'F')
{
alert('This is not a project.');
}
switch(js_job_type)