Question

Contact custom call action

Hi,

How to change default call event. I mean on MobilePhone click - default its opening new tab with callto in url.

Greetings,

Cezary

 

Like 0

Like

1 comments

Hello Cezary,

When you click on the Mobile Phone of contact there is a CTI panel call tab opened and call is performed to the number that is specified in Mobile Phone field. This happens because there is an attribute on ContactPageV2 of UIv2 package called "linkclick":

"linkclick": {

                        "bindTo": "onCallClick"

                    },

that is bound to onCallClick function:

onCallClick: function(number) {

                return this.callContact(number, this.$Id, this.$Account);

            }

that calls callContact function from CommunicationOptionsMixin of NUI package. So to overwrite this logic you need to simply create your own function and call it in linkclick attribute so to trigger your custom action instead of base action.

Best regard,

Oscar

Show all comments