Advertisement
Guest User

Untitled

a guest
Apr 12th, 2013
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cur_frm.cscript.custom_validate = function(doc) {
  2.     if(!(doc.customer || doc.lead)) {
  3.         var msg = "Either Lead or Customer should be filled in Communication";
  4.         msgprint(msg);
  5.         throw msg;
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement