Hi… I found the code to send message from my website to Whatsapp number… but I have a problem… I need to send the message in many lines. In javascript that code is “\n”:
var phoneNumber = "+57" + $w("#input4").value;
var Texto = "Gracias " + $w("#input1").value + " " + $w("#input2").value+"\n"+
"Ahora perteneces a la gran comunidad Coffee Time+"\n"+
"Disfruta nuestros productos.";
var phonenumber_link = "https://api.whatsapp.com/send?text=" + Texto + "&phone=" + phoneNumber;
$w("#button1").link = phonenumber_link;
This last code does’t work… but the next yes…
var phoneNumber = "+57" + $w("#input4").value;
var Texto = "Gracias " + $w("#input1").value + " " + $w("#input2").value+"..."+
"Ahora perteneces a la gran comunidad Coffee Time+"..."+
"Disfruta nuestros productos.";
var phonenumber_link = "https://api.whatsapp.com/send?text=" + Texto + "&phone=" + phoneNumber;
$w("#button1").link = phonenumber_link;
The only diferent is “\n” <> “…”
Can you help me to get the syntax to get a new line between the same text?.
Thanks