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.
Multiselect box Validation
Hi, we have a BIG problem trying to validate multiselect box fields with client suitescripts in IE6 & IE7. I tried two codes,
Field Change Funtion:
function onChangeFunc(type, name){
if (name='custentity_partners'){
var multi = nlapiGetFieldValue('custentity_partners');
if (multi && multi.length > 6){
alert('Warning: You can only select 6 partners');
nlapiSetFieldValue('custentity_partners',multi.slice(0,multi.length -1),false);
}
}
}
Field Validate Function:
function onValidateFunc(type,name){
if (name='custentity_partners'){
var multi = nlapiGetFieldValue('custentity_partners');
if (multi && multi.length > 6){
alert('Warning: You can only select 6 partners');
return false;
}
}
return true
}
IE send an alert every time the mouse moves after the condition is reached at once.