<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How can I override the default &amp;quot;click on phone number&amp;quot; action?</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/795/how-can-i-override-the-default-click-on-phone-number-action</link><description>I noticed that when a phone number with the appropriate format is clicked in the Contacts view, this performs a &amp;quot;callto:&amp;lt;phone number&amp;quot; action which connects to Skype or other compatible software. It would be useful to me if I could override this action</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/27265?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 02:38:21 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ffc22227-ac11-4bc7-a2b9-c4496d0f5502</guid><dc:creator>Marco Gateno</dc:creator><description>&lt;p&gt;I sort of get it. In my case I need to send a POST call to my contact center API with a custom format that will tell it who the agent logged in is, and the number to dial. I would have to contstruct the call reading the agentId and the phone number.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would appreciate any suggestions on how to build this call.&lt;/p&gt;
&lt;p&gt;Not new to nodejs or APIs, but very new to SugarCRM.&lt;/p&gt;
&lt;p&gt;Rgds,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17982?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 10:38:07 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a42c7b9d-2eba-4692-9fa2-15923e39495f</guid><dc:creator>Community Alumni User</dc:creator><description>&lt;p&gt;&lt;span style="font-size:13px;"&gt;Hi Andr&amp;eacute;, Tenfold&lt;span&gt;&amp;nbsp;offers an integration for Sugarcrm and has features such as click to dial, automatic call logging, easy note taking and task creation, screen pops on inbound and outbound calls, new lead/contact creation when no matching records, support for cases/opportunities and advanced analytics on the backend. Hope that helps! &lt;a href="https://www.tenfold.com/integrations/sugarcrm/" rel="nofollow" target="_blank"&gt;https://www.tenfold.com/integrations/sugarcrm/&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17981?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 13:11:21 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:9b88d246-a3f0-4670-bb30-439d941e8006</guid><dc:creator>Tevfik T&amp;#252;mer</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/andre.policarpo_4000_collab.com"&gt;Andr&amp;eacute;&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;I&amp;#39;m glad it worked. &lt;span class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Best Regards&lt;/p&gt;&lt;p&gt;Tevfik T&amp;uuml;mer&lt;/p&gt;&lt;p&gt;Developer Support Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17980?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 12:20:20 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ca82eebe-785f-41f2-92b3-49dfe05ac4b0</guid><dc:creator>Andr&amp;#233; Policarpo</dc:creator><description>&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/members/ttuemer@sugarcrm.com"&gt;Tevfik T&amp;uuml;mer&lt;/a&gt; Thanks a lot this worked perfectly!&lt;/p&gt;&lt;p&gt;If you don&amp;#39;t mind I have one more question. Now that I have the doMagic function running when the phone number is clicked, how can I access the clicked phone number in the phone.js?&lt;/p&gt;&lt;p&gt;EDIT: Nevermind, I figured it out through a bit of trial and error &lt;span class="emoticon-inline emoticon_grin" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17979?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 12:02:35 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ca2b8e0e-0cd8-4d08-804e-7b702a3daf24</guid><dc:creator>Tevfik T&amp;#252;mer</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/andre.policarpo_4000_collab.com"&gt;Andr&amp;eacute;&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;Yes. You can do this customisations by copying your hbs file&lt;/p&gt;&lt;p&gt;from &lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;./clients/base/fields/phone/phone.hbs&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;to&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt; ./custom/modules/&amp;lt;YOUR_CUSTOM_MODULE&amp;gt;/clients/base/fields/phone/phone.hbs&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;For the js file, you would need to create the file by yourself like;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt; ./custom/modules/&amp;lt;YOUR_CUSTOM_MODULE&amp;gt;/clients/base/fields/phone/phone.js&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;After changes, do not forget to run Quick Repairs and Rebuild.&lt;/p&gt;&lt;p&gt;Best Regards&lt;/p&gt;&lt;p&gt;Tevfik T&amp;uuml;mer&lt;/p&gt;&lt;p&gt;Developer Support Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17978?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 11:46:15 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:41000f90-d570-469e-ba82-16cd4c02c610</guid><dc:creator>Mehul  Bhandari</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/andre.policarpo_4000_collab.com"&gt;Andr&amp;eacute; Policarpo&lt;/a&gt;&lt;/p&gt;&lt;p&gt;yes to every sidecar module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17977?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 10:25:46 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:50d24131-a47c-4835-bfd6-d3ef8e625fb4</guid><dc:creator>Andr&amp;#233; Policarpo</dc:creator><description>&lt;p&gt;Thanks a lot for the useful response!&lt;/p&gt;&lt;p&gt;Sorry to bother you with such trivial questions, but this should be done with a custom module am I right?&lt;/p&gt;&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17976?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 09:08:01 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:9bcac933-1a55-452b-ae47-1b7aa583f8f3</guid><dc:creator>Tevfik T&amp;#252;mer</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/andre.policarpo_4000_collab.com"&gt;Andr&amp;eacute;&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;Sugar uses default HTML functionality with callto: feature. So, my recommendation about this. I would modify hbs file with a class definition like;&lt;/p&gt;&lt;pre class="javascript"&gt;{{#if skypeValue}}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a class=&amp;quot;my-custom-action-selector&amp;quot; href=&amp;quot;callto:{{skypeValue}}&amp;quot;&amp;gt;{{value}}&amp;lt;/a&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {{else}}{{value}}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {{/if}}
&lt;/pre&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p&gt;Using this class attribute, you can bind any action you want in phone.js initialize function like;&lt;/p&gt;&lt;pre class="javascript"&gt;({
&amp;nbsp; extensFrom: &amp;#39;PhoneField&amp;#39;,
&amp;nbsp; events: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;click .my-custom-action-selector&amp;#39;:&amp;#39;doMagic&amp;#39;
&amp;nbsp; },

&amp;nbsp; initialize: function (options) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; this._super(&amp;#39;initialize&amp;#39;, [options]);
&amp;nbsp; },

&amp;nbsp; doMagic: function (event) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // do your magic here
&amp;nbsp;&amp;nbsp;&amp;nbsp; return false; //this will kill the event to run callto:{skypeValue}
&amp;nbsp; }
})
&lt;/pre&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;p&gt;Best Regards&lt;/p&gt;&lt;p&gt;Tevfik T&amp;uuml;mer&lt;/p&gt;&lt;p&gt;Developer Support Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17975?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 08:26:41 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:52995065-6cce-4b2c-a55d-5938409fb9b8</guid><dc:creator>Andr&amp;#233; Policarpo</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to override the action, yes. What I want to do is to replace the default action which is a html &amp;quot;callto:{skypevalue}&amp;quot; tag with a action of my own.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17973?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 08:25:08 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d4ede1be-a6b2-4b53-a0ca-f07c434fa74c</guid><dc:creator>Andr&amp;#233; Policarpo</dc:creator><description>&lt;p&gt;Thanks for the fast response!&lt;/p&gt;&lt;p&gt;I&amp;#39;m quite new to SugarCRM development so there&amp;#39;s a thing I&amp;#39;m missing. Should I try your suggestion with a constructed custom module and then install it with the &amp;quot;Module Builer&amp;quot; in the SugarCRM instance?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17974?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 17:47:31 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0671bbe4-8a15-4440-9ad7-eea3c8a408e5</guid><dc:creator>Angel Magana</dc:creator><description>&lt;p&gt;What exactly are you trying to override? The action it performs or the formatting/URL it creates for such phone numbers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I override the default "click on phone number" action?</title><link>https://sugarclub.sugarcrm.com/thread/17972?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 16:29:17 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:74bf66e4-82bb-49e3-a192-9595095ffa20</guid><dc:creator>Mehul  Bhandari</dc:creator><description>&lt;p&gt;hi &lt;a href="https://sugarclub.sugarcrm.com/members/andre.policarpo_4000_collab.com"&gt;Andr&amp;eacute; Policarpo&lt;/a&gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;yes , you can do by overriding phone handlebar files.&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;copy clients/base/fields/phone/*.hbs to custom/clients/base/fields/phone&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;and then load js file using jsgrouping&lt;/p&gt;&lt;div class="bar" style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;ol class="dp-c" start="1" style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;li&gt;&lt;span style="font-weight:inherit;font-style:inherit;"&gt;&amp;nbsp; &lt;/span&gt;&lt;strong&gt;custom/Extension/application/Ext/JSGroupings&lt;/strong&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style="font-size:14px;color:#000000;"&gt;you can click on that and perform action&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&lt;span style="font-weight:bold;font-style:inherit;font-family:inherit;"&gt;this is detail.hbs&amp;nbsp;&amp;nbsp; try this&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;{{#if value}}&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img style=&amp;quot;cursor:pointer;float:left;margin-right:5px;padding-top:2px;width:24px&amp;quot; src=&amp;quot;custom/themes/default/images/abc.png&amp;quot; onclick=&amp;quot;one();&amp;quot;&amp;gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class=&amp;quot;ellipsis_inline&amp;quot; data-placement=&amp;quot;bottom&amp;quot; title=&amp;quot;{{value}}&amp;quot;&amp;gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {{#if skypeValue}}&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=&amp;quot;callto:{{skypeValue}}&amp;quot;&amp;gt;{{value}}&amp;lt;/a&amp;gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {{else}}{{value}}&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {{/if}}&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;{{/if}}&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&lt;span style="font-weight:bold;font-style:inherit;font-family:inherit;"&gt;Rebuild JS Grouping Files&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;&lt;span style="font-weight:bold;font-style:inherit;font-family:inherit;"&gt;Quick Repair &amp;amp; Rebuild&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:14px;color:#000000;"&gt;..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>