Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
function fieldsOnCancel(){ return " moduleid.count"; }
function onCancel(count){
if(count <= 0){
window.location = "Melt://showAlert:/message to display to the user"; return false;
}else{
return true;
}
} 

...

Code Block
<html><head><title>onCancel</title><script type="text/javascript"> function fieldsOnCancel(){ return "7.count"; }
function onCancel(count){
if(count <= 0){
window.location = "Melt://showAlert:/You can not cancel this record, at least one Activity record is required for this Lead";
return false;
}else{
return true;
}
}</script></head><body></Body></html> 

...

Code Block
{if(count <= 0){window.location = "Melt://showAlert:/ You can not cancel this record, at least one Activity record is required for this Lead "; return false;} 

...