Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cur_frm.cscript.custom_validate = function(doc) {
- if(!(doc.customer || doc.lead)) {
- var msg = "Either Lead or Customer should be filled in Communication";
- msgprint(msg);
- throw msg;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement