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!
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: