Watsapp Dynamic link stopped working. the page is to create a bill and send it via watsapp to the customer.


Below is the variables used in code
#Button44 is send Watsapp Button
#Input10 is Customer Phone Number
#input16 is Final Bill Label
#input11 is Bill number

Code is as follows.

export function button44_click(event) {
$w(“#button44”).link = “Share on WhatsApp” + “91” + $w(“#input10”).value

  • “&text=Thank%20You%20for%10Shopping%20EID%20your%20Bill%20is%20” + $w(“#input16”).value
  • “%20Your%20Bill%20Number%20is%20” + $w(“#input11”).value + “%20Keep%20it%20for%20future%20references”;
    //Add your code for this event here:
    }

Please note earlier the link use to work.
It stopped work few weeks back.
Thanks in Advance

First point of call is to check on WhatsApp end and their own support as you are using an external link to them - https://api.whatsapp.com.

If they have changed something their end then you would obviously need to change and update it in Wix with the correct and updated settings yourself as Wix won’t do it for you.

i have not done any changes.
Using the link to send watsapp to any number without saving them.
Earlier i used this reference code as logic

  1. <a href=“Share on WhatsApp> Send Message

can you please guide me through the process

Wix won’t provide support for help with third party code, for that you are better suited going through WhatsApp own support.
https://faq.whatsapp.com/general/26000030/

Plus, you can search this forum for previous posts about using WhatsApp within Wix too, like these…

https://www.wix.com/corvid/forum/community-discussion/how-to-code-and-insert-a-whatsapp-call-and-message-button

https://www.wix.com/corvid/forum/community-discussion/how-to-create-whatsapp-click-to-chat

@givemeawhisky can you please suggest me whats wrong in my code ?
As earlier this use to work.
Secondly how to link Button to Dynamic Link ?
Your help is really appreciated.
PS: I am not a coder.

I tried following the links sent by you.
But was unable to find the difference between my code and the links reference.