Database list and phone call (Beginner here)

This forum contains topics that were moved from Get Satisfaction
Viktor
Posts: 0
Joined: Mon Jun 01, 2015 7:48 am

Database list and phone call (Beginner here)

Post by Viktor »

Hi, noobie here.

I have a list of numbers with corresponding names listed from my database. I am wondering how either I could call the number listed simply by clicking on it or preferably have a button beside it to do the exakt same thing, to call the number... Just asked a similar question but deleted it due to inclearity. hope someone can help!
Many thanks
Viktor

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Database list and phone call (Beginner here)

Post by Alena Prykhodko »

Hello Viktor,

This is possible via JavaScript https://devcenter.appery.io/documenta...

Viktor
Posts: 0
Joined: Mon Jun 01, 2015 7:48 am

Database list and phone call (Beginner here)

Post by Viktor »

Sorry, I do not think I understand that correctly.
Lets say I have a database of names and numbers. I list these through (name) label and (number) link. The problem is that in the URL of the link it must say 'Tel:' (before the actual number). So how do I map number (from DB) to URL (of link) and and add 'Tel:' beforehand in javascript in the mapping?

Hope you understand my poor explanation! :)

Thanks!

Viktor
Posts: 0
Joined: Mon Jun 01, 2015 7:48 am

Database list and phone call (Beginner here)

Post by Viktor »

Sorry posted wrong.

Sorry, I do not think I understand that correctly.
Lets say I have a database of names and numbers. I list these through (name) label and (number) link. The problem is that in the URL of the link it must say 'Tel:' (before the actual number). So how do I map number (from DB) to URL (of link) and and add 'Tel:' beforehand in javascript in the mapping?

Hope you understand my poor explanation! :)

Thanks!

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Database list and phone call (Beginner here)

Post by Yurii Orishchuk »

Hi Viktor,

If you want to change value in mapping from "xyz" to "tel:xyz" you can follow this solution:

1 Open your service "success" mapping where you have link from to the Link component.

2 Click on JS for this link.

3 Put following JS code:

pre

return "tel:" + value;

/pre

Regards.

Post Reply