The following code do no respond in android mobile using Chrome. In computer it brings me to Skype for Business. Is there an Iframe or any other solution to make a phone call to a user phone number displayed in a form?
export function iconButton2_click(event) {
//Add your code for this event here:
wixLocation.to(“tel:+972” + $w(“#input16”));
}
Hi Shimon!
You’re missing ‘.value’ after your input variable.
This should be your code:
export function iconButton2_click(event) {
wixLocation.to("tel:+972" + $w("#input16").value);
}
Doron.
Yes, I should have added the “.value.”.
I did it, but it still behave the same. I even set a string without a variable, but I got the same behavior. No call is made from the mobile and Skype for business is open in computer.
Please share a URL to either your site or your editor so one of us, the Wix Code team, can inspect it and provide you with a solution.
Doron.