I needed help for a way to restrict e-mail templates.
Therefore if Lead is selected in “related to” then only x nos. of templates are displayed.
If Contacts is selected in “related to” then only y nos. of templates are displayed.
Yup, figured that one out. I kinda also have a skeletal jqurey for it.
I just wanted to know how to call the jqurey?
I mean, email quick compose ain’t got no detailview/editview defs.
In fact it itself is a java pop-up, that gets called from modules/Emails/javascript/EmailUICompose.js and modules/Emails/javascript/composeEmailTemplate.js
For example when I click the compose email button from within the context of another module’s detail view (Leads/Contacts) the quick compose modal window comes up.
Therefore how would I call the custom jquery from the modal window.
Ah I see what you mean, I was thinking you were talking about something in the standard email module. Yeah the quick compose window is done in JavaScript and what you want to do is going to be fairly difficult id imagine. I’ve never actually had to modify that myself.
What I can tell you is there are two files I found related to this: