``` function validateLine(context) { var cu...
# suitescript
c
Copy code
function validateLine(context) {
     var currentRecord = context.currentRecord;
     var sublistName = context.sublistId;
     var recordType = currentRecord.type;

     if(recordType === 'customer' && sublistName === 'addressbook'){
       // var billToCheck = currentRecord.getCurrentSublistValue('addressbook', 'defaultbilling');
       // var shipToCheck = currentRecord.getCurrentSublistValue('addressbook', 'defaultshipping');
       // if(billToCheck && shipToCheck){
       //   alert('Uncheck default billing flag');
       //   return false
       // }
       return true;
     }
   }