How can I use Velo by Wix to open the mobile messaging app at the click of a button?

Hello everyone!

I am working on a website using Wix and would like to implement a feature on the mobile version of my site. I want a click on a specific button to open the messaging app on my mobile device to send a text message to a specific number.

I have been exploring the capabilities of Velo by Wix, but I am not sure how to achieve this behavior. Could anyone give me some guidance on how I can use Velo to open the mobile messaging app when I click a button and send a text message to a specific number?

Any help or advice would be greatly appreciated!

Thanks in advance!

This wouldn’t be done with Velo. Instead you’d do this as a regular link with the following format and using an HTML Component as Wix doesn’t support this natively.

<button onclick="location.href='sms:+12345551234&body=Hello%20world'" type="button">Contact us</button>

Clicking on the button would open a link with this URL would open a text message to +12345551234 with the message Hello world. %20 needs to be included for each space.

However I would recommend against this as there is no standard for sms links, especially those that include a text body. For example this link doesn’t include a message on my phone but might on There is also no way clicking a link in a browser can cause a user to send a text message without them clicking send in their messaging app.

Can you share a bit more about what your usecase is? Perhaps there’s another way to get what you need without this.

1 Like

Thanks man!

I solved it with HTML tag,

greetings!

1 Like

hey Gabriel, Could you share with me the HTML you got for this to work? I have tried like 7 different ways and keep running into some blocks

<button onclick="location.href='sms:+12345551234&body=Hello%20world'" type="button">Contact us</button>
1 Like