How to make phone number displayed in a page as alink so that if i click on the phone numbe it should oprn in the dial pad

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi @Iwene Pevke​

Using Richtext widget you can display the number as link and using phone.dial() API you can open the dial pad for calling. OR you can use the button/label with phone number as text and using skin you can apply the link effect.

kony.phone.dial() API doc link

http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#kony.phone_functions.htm#phone.di%3FTocPath%3DPhone%2520API%7Ckony.phone%2520Namespace%7CFunctions%7C_____3

Here is the code snippet that I use in the onTouchEnd action.

if(eventobject.text != null && eventobject.text != undefined) dialPhone(eventobject.text);

Hello @Iwene Pevke​

Did my response help you? If yes, make sure you click [Select as Best] under the response to close out the post.