# Chat and notification of new messages

**URL:** <https://forum.adalo.com/t/chat-and-notification-of-new-messages/30977>\
**Category:** Database\
**Created:** [August 19, 2022, 9:31am UTC](https://forum.adalo.com/t/chat-and-notification-of-new-messages/30977 "2022-08-19T09:31:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tonys/32/23681_2.png) [@TonyS](https://forum.adalo.com/u/TonyS)\
**Post date:** [August 19, 2022, 9:31am UTC](https://forum.adalo.com/t/chat-and-notification-of-new-messages/30977/1 "2022-08-19T09:31:58Z")

</div>

club, who knows? how to make it so that when users used the chat they received a notification or it was outwardly visible that a new message had arrived in the chat, how did you solve it?

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [August 19, 2022, 10:22am UTC](https://forum.adalo.com/t/chat-and-notification-of-new-messages/30977/2 "2022-08-19T10:22:51Z")

</div>

Hey there @TonyS

You can add a “Trigger” notification action after the “Create message” action.

So what I’ve done is added a True/False parameter to the Message collection and named it “Sent”.

In my new [User to User Chat Template](https://forum.adalo.com/t/new-templar-design-template-user-to-user-chat/30952), this is handled with the “arbitrary javascript” component (to count characters in the message) within the message list.

So I create the message with the “Sent” marked as false. Then, the Arbitrary javascript component within the list sends the notification, creates an internal notification (for a notification screen), and then marks the message’s “Sent” parameter to True.

 ![Screen Shot 2022-08-19 at 4.21.52 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/4/6/46b6f701c8783ed9029b85167905cb66e9caecbe.png)  
 ![Screen Shot 2022-08-19 at 4.22.25 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/0/d/0d6348a7581f3580d2861117dc9e2621a7064ab5.jpeg)  
 ![Screen Shot 2022-08-19 at 4.22.40 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/8/c86c09853ddada30f8fb517a429d40fc4638de2b.png)

---

<div class="post-metadata">

**Author:** ![TonyS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tonys/32/23681_2.png) [@TonyS](https://forum.adalo.com/u/TonyS)\
**Post date:** [August 19, 2022, 2:22pm UTC](https://forum.adalo.com/t/chat-and-notification-of-new-messages/30977/3 "2022-08-19T14:22:06Z")

</div>

> [@Flawless](#):
>
> мл

looks good, thank you, I appreciate this help, now I will try to do it
