Hi all,
I would like to trick function by click on button beside phone number, is it possible to do this?
Look like below:
SugarEnt 7.6
Thanks,
May
Hi all,
I would like to trick function by click on button beside phone number, is it possible to do this?
Look like below:
SugarEnt 7.6
Thanks,
May
Hi
yes , you can do by overriding phone handlebar files.
copy clients/base/fields/phone/*.hbs to custom/clients/base/fields/phone
and then load js file using jsgrouping
custom/Extension/application/Ext/JSGroupings
you can click on that and perform action..
Thank you for your suggest.
I do following you suggest copy all file then do following below link
I found this http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/Extension_Framework/JSGroupings/
in my custom.js we create like this to test:
function one(){
console.log("Hello World!");
}
but no log appear.
How can related my js with custom/clients/base/fields/phone ?
Thank you for your suggest.
I do following you suggest copy all file then do following below link
I found this http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/Extension_Framework/JSGroupings/
in my custom.js we create like this to test:
function one(){
console.log("Hello World!");
}
but no log appear.
How can related my js with custom/clients/base/fields/phone ?
Hi
this is detail.hbs try this
{{#if value}}
<img style="cursor:pointer;float:left;margin-right:5px;padding-top:2px;width:24px" src="custom/themes/default/images/abc.png" onclick="one();">
<div class="ellipsis_inline" data-placement="bottom" title="{{value}}">
{{#if skypeValue}}
<a href="callto:{{skypeValue}}">{{value}}</a>
{{else}}{{value}}
{{/if}}
</div>
{{/if}}
Rebuild JS Grouping Files
Quick Repair & Rebuild