Code Samples
function validateFieldChange(type,name,linenum){
if((type =='line') && (name =='department')){
if(nlapiGetCurrentLineItemValue(type, name) == '2'){
alert('Please select a different value');
nlapiSetCurrentLineItemValue(type, name, '', true, true);
}
}
}
No comments:
Post a Comment