# Send whatsapp message from odk-collect

**URL:** <https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858>\
**Category:** Support\
**Tags:** odk-collect\
**Created:** [February 25, 2022, 3:14pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858 "2022-02-25T15:14:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrico\_Gabrielli](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/enrico_gabrielli/32/17489_2.png) [@Enrico\_Gabrielli](https://forum.getodk.org/u/Enrico_Gabrielli)\
**Post date:** [February 25, 2022, 3:14pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/1 "2022-02-25T15:14:09Z")

</div>

Salutations.  
I am working on a project with some farmers.  
However, researchers want to be notified when a farmer enters data.  
Farmers don’t use email on their smartphone, but whatsapp.  
I could try with rest-service, but I would like the data to be sent by whatsapp to the researchers before the final entry, and therefore before the farmer finally uploads the data to the server.  
So the best way is ex: com.whatsapp (extras)  
I found this  
ex:com.whatsapp(EXTRA\_TEXT=’body’)  
or  
ex:com.whatsapp(android.intent.extra.TEXT=‘some text to send’)  
in past posts  
Whatsapp is opened, but nothing else happens.  
Maybe you need to do ex: [api.whatsapp.com](http://api.whatsapp.com)?  
You see I’m not a computer scientist, huh?  
In fact, I’m a researcher in agriculture, I’m doing it for others!  
Thank you in advance

---

<div class="post-metadata">

**Author:** ![Alexander\_Torrado](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/alexander_torrado/32/2720_2.png) [@Alexander\_Torrado](https://forum.getodk.org/u/Alexander_Torrado)\
**Post date:** [February 27, 2022, 3:21pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/2 "2022-02-27T15:21:57Z")

</div>

Hi,

Try this:

 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/1/c/1c57b3443e9b4ef167be6c83f3996f1a6b1ad9b2.png)

numcel must include country code.

See documentation here: [https://faq.whatsapp.com/general/chats/how-to-use-click-to-chat/](https://faq.whatsapp.com/general/chats/how-to-use-click-to-chat/)

---

<div class="post-metadata">

**Author:** ![Enrico\_Gabrielli](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/enrico_gabrielli/32/17489_2.png) [@Enrico\_Gabrielli](https://forum.getodk.org/u/Enrico_Gabrielli)\
**Post date:** [March 1, 2022, 4:13pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/3 "2022-03-01T16:13:33Z")

</div>

Thank you.  
But if it is possible to use a link, it should also go with the webforms in Enketo ??? !!!  
(I have to check if all farmers have an android device)  
Instead it doesn't work for me, on the webform it gives me this:  
" rel="noopener" target=" blank"  
and if I click "page not found"

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [March 1, 2022, 4:15pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/4 "2022-03-01T16:15:00Z")

</div>

Unfortunately Enketo does not support dynamic URLs. Issue: [https://github.com/enketo/enketo-transformer/issues/47](https://github.com/enketo/enketo-transformer/issues/47)

---

<div class="post-metadata">

**Author:** ![Alexander\_Torrado](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/alexander_torrado/32/2720_2.png) [@Alexander\_Torrado](https://forum.getodk.org/u/Alexander_Torrado)\
**Post date:** [March 1, 2022, 10:37pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/5 "2022-03-01T22:37:18Z")

</div>

Try this for web:

 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/5/8/581229d29e45dca0633cc2eae3f38a9082ddefce.png)

---

<div class="post-metadata">

**Author:** ![Enrico\_Gabrielli](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/enrico_gabrielli/32/17489_2.png) [@Enrico\_Gabrielli](https://forum.getodk.org/u/Enrico_Gabrielli)\
**Post date:** [March 2, 2022, 6:18am UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/7 "2022-03-02T06:18:49Z")

</div>

Thank you.  
It could be the solution!  
I just have a problem now with apostrophes or comma.  
I've tried many possible combinations, but none of them work for me:

```auto
concat('<a href=“https://wa.me/',${numero},'?text= ',${problemi},'“target=“_blank“<Invia WhatsApp</a>')
concat("<a href=“https://wa.me/",${numero},"?text= ",${problemi},"“target=“_blank“<Invia WhatsApp</a>")
*concat("<a href='https://wa.me/",${numero},"?text ",${problemi},"'target='_blank'<Invia WhatsApp</a>")
*concat('<a href="https://wa.me/',${numero},'?text= ',${problemi},'"target="_blank"<Invia WhatsApp</a>')
concat("<a href=″https://wa.me/",${numero},"?text= ",${problemi},"‶target=″_blank‶<Invia WhatsApp</a>")
concat("<a href=¨https://wa.me/",${numero},"?text= ",${problemi},"¨target=¨_blank¨<Invia WhatsApp</a>")
concat(“<a href='https://wa.me/”,${numero},”?text= “,${problemi},“'target='_blank'<Invia WhatsApp</a”)
concat(“<a href="https://wa.me/”,${numero},”?text= “,${problemi},“"target="_blank"<Invia WhatsApp</a”)

```

the result is sometimes an error, or this is it

 ![Screenshot 2022-03-02 at 07-15-53 VINDICTA - trappole cimici asiatiche 2022](https://getodk.b-cdn.net/uploads/default/original/3X/4/0/40ad64ebe98d11afb4a542b1d3ba4f23ec4bed39.png)

I work with KoboToolbox (hopefully we can say here, right?), And my computer is a Linux Debian 11

---

<div class="post-metadata">

**Author:** ![Alexander\_Torrado](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/alexander_torrado/32/2720_2.png) [@Alexander\_Torrado](https://forum.getodk.org/u/Alexander_Torrado)\
**Post date:** [March 6, 2022, 8:35pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/8 "2022-03-06T20:35:17Z")

</div>

Sorry, @LN is right. It does not work in Enketo.

---

<div class="post-metadata">

**Author:** ![alios82](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alios82](https://forum.getodk.org/u/alios82)\
**Post date:** [March 9, 2022, 5:17am UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/9 "2022-03-09T05:17:44Z")

</div>

Hi @LN@Alexander_Torrado  
A similar hiccup: **COPY data to clipboard via intent**

> [@Copy: Send "calculate" data to clipboard from a collect form](https://forum.getodk.org/t/copy-send-calculate-data-to-clipboard-from-a-collect-form/36939):
>
> 1. What is the problem? Be very detailed. I need sample xlsform to effectively copy data from within form. I think share to external app feature may work. External app will be clipboard in android i think. 2. What app or server are you using and on what device and operating system? Include version numbers. Android samsung galaxy S7. ODK central 1.2 GDrive also 3. What you have you tried to fix the problem? I do not know the syntax. So i am looking for a sample form as this is not clear to …

Appreciate your feedback.

---

<div class="post-metadata">

**Author:** ![Abdullah\_Blogger](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/abdullah_blogger/32/22744_2.png) [@Abdullah\_Blogger](https://forum.getodk.org/u/Abdullah_Blogger)\
**Post date:** [September 20, 2023, 3:04pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/10 "2023-09-20T15:04:52Z")

</div>

It is unfortunately not possible to use dynamic URLs with Enketo[.](https://gbwhts.net/ogwhatsapp-apk/) Here's the problem: [https://github.com/enketo/enketo-transformer/issues/47](https://github.com/enketo/enketo-transformer/issues/47)

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [September 20, 2023, 4:35pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/11 "2023-09-20T16:35:04Z")

</div>

Correct, but do make sure you take a look at a possible alternative that I mentioned in that issue:

| type | name | label | appearance | calculation |
| --- | --- | --- | --- | --- |
| text | url | Click to send to whatsapp | url | concat('[https://wa.me/](https://wa.me/)', ${phone}, '?text=', 'Hi') |

---

<div class="post-metadata">

**Author:** ![Prashant\_K](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/prashant_k/32/16221_2.png) [@Prashant\_K](https://forum.getodk.org/u/Prashant_K)\
**Post date:** [October 21, 2023, 11:09am UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/12 "2023-10-21T11:09:01Z")

</div>

Hello,

Sending message to individual number is possible and works.  
How can i share the message to the group.  
I tries to used the group unique iD instead of mobile number.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [October 29, 2023, 12:32am UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/13 "2023-10-29T00:32:33Z")

</div>

I think sending a message to a group might not be supported. It's possible to open such a group if you know its id but that's it.

---

<div class="post-metadata">

**Author:** ![Tyler\_Depke](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tyler_depke/32/17598_2.png) [@Tyler\_Depke](https://forum.getodk.org/u/Tyler_Depke)\
**Post date:** [May 20, 2025, 8:51pm UTC](https://forum.getodk.org/t/send-whatsapp-message-from-odk-collect/36858/17 "2025-05-20T20:51:07Z")

</div>

> [@LN](#):
>
> Unfortunately Enketo does not support dynamic URLs. Issue: [https://github.com/enketo/enketo-transformer/issues/47](https://github.com/enketo/enketo-transformer/issues/47)

Any chance dynamic URLS will be supported in the new ODK Web Forms? I'm looking to make a WhatsApp button with a custom message based on previous responses for a public form not using ODK Collect.
