Difference between revisions of "Set Defaults on Manual Notify"

From SDU
Jump to: navigation, search
(New page: I had a requirement for the assigned group and ticket customer to be defaulted in the recipients list for manual notifications in Service Desk. I know you can set them as object contacts f...)
 
Line 13: Line 13:
 
}
 
}
  
[Category:Customization]
+
[[Category:Customization]]

Revision as of 20:01, 7 February 2008

I had a requirement for the assigned group and ticket customer to be defaulted in the recipients list for manual notifications in Service Desk. I know you can set them as object contacts for the Manual Notify activity notification - but that will not allow you to turn it off on the fly. For instance - 90% of Manual notifications go to the group or customer. Sometimes, I want to add more recipients or take group and/or customer away.

I put the following mod on nf.htmpl

In the head section is a JS function called InitNames

At the beginning of that function is a <PDM_IF> block...just after that block, I use the following JS code:

CODE if (document.main_form.in_names.value == ){ document.main_form.in_names.value = '$args.customer.combo_name::$args.group.last_name'; document.main_form.in_ids.value = '$args.customer.id $args.group.id'; }