Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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)
0