markus.selg
Posts: 0
Joined: Thu Jul 14, 2011 5:25 pm

Click and Call

Hey, is it possible to click on a Button, and after that the phone call a number. I think this is possible via "Run costum JavaScript". But I can't find the right code.
Thank you for your help!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Click and Call

This works: http://stackoverflow.com/questions/27...

I added click event to a button, then added Navigate to Link action and set this in the URL: tel:2125551212

Let me know if it works for you...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Click and Call

Avinash Lt
Posts: 0
Joined: Mon Dec 24, 2012 11:57 am

Click and Call

i want to achieve the about using java script as my tell phone number is stored in local storage variable. Any suggestions please?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Click and Call

Hello! Use this JS on button click

window.location.href='tel:' + localStorage.getItem('variable_name');

variable_name - is name of your variable where you store phone numbers

Avinash Lt
Posts: 0
Joined: Mon Dec 24, 2012 11:57 am

Click and Call

thank you so much! works :)

michaeloucks
Posts: 0
Joined: Sun Mar 18, 2012 8:50 pm

Click and Call

I tried this JS window.location.href='tel:' + localStorage.getItem('variable_name');
and I cant seem to get the tel-number to load.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Click and Call

Test to make sure you get the right value from local storage.

Kirit Vaghela
Posts: 0
Joined: Tue Aug 27, 2013 11:23 am

Click and Call

Hello I'm not able to call in iphone using
document.location.href = 'tel:+1-800-555-1234';

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Click and Call

Return to “Issues”