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.
My First Code - Not Working
Hi,
Please can you help me with this code.. I am trying to make a alert window pop up whenever a Custom Field is set to 0.
I have used this code from the Help example.
function pageInit_getFieldTextTest() {
var RemovalID = nlapiGetFieldText('Reason for Removal');
if {custitem14} == '0' then {
alert('Please specify the Reason for Removal');
}
}
However It does not work. I have just changed a few things from the Example...
function pageInit_getFieldTextTest() {
var departId = nlapiGetFieldText('department');
if (departId == '') {
alert('Please specify the Service department');
}
if (departId == 'Sales') {
alert('Please select the Service department');
}
}
Please can someone tell me what I am doing wrong? :h_a_w: