//Display BR
function executeRule(current, previous){
g_scratchpad.email = current.caller_id.email;
g_scratchpad.hasAttachment = current.hasAttachments();
}(current, previous);
//onChange Client Script
function onChange(control, oldValue, newValue, isLoading, isTemplate){
if(isLoading || newValue === ''){
return;
}
if(g_scratchpad.hasAttachment)
alert("Email ID of caller is : "+g_scratchpad.email);
else
alert("NO attachement is in the form");
}