Hey Guys,
I am having a hard time figuring this out!
When you are composing an email, and focus on the to, cc, and bcc fields, it will give the option to insert an email from Accounts, Leads, Targets, Contacts, and users modules.
My question is, how can I add a button to insert email from a custom module I created?
the custom module is “prchs_Vendors” and display label is “Vendors”.
I copied /modules/Emails/include/ComposeView/EmailsComposeView.js to custom/modules/Emails/include/ComposeView/EmailsComposeView.js
'<button class="btn btn-default btn-sm btn-qtip-bar" data-open-popup-module="prchs_Vendors" title="' + SUGAR.language.translate('Emails', 'LBL_INSERT_VENDORS_EMAIL') + '"><span class="glyphicon"><img src="themes/' + SUGAR.themes.theme_name + '/images/sidebar/modules/Users.svg"></span></button>' +
under the
self.qtipBar =
section of the code.
However, it is not showing anything. It shows the default 5 buttons.
Does anybody know what I have to do to achieve this?