# Private Chat attached to Form Submission

**URL:** <https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902>\
**Category:** Ask for Help\
**Created:** [March 21, 2024, 7:16pm UTC](https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902 "2024-03-21T19:16:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkd\_hayden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tkd_hayden/32/67200_2.png) [@tkd\_hayden](https://community.glideapps.com/u/tkd_hayden)\
**Post date:** [March 21, 2024, 7:16pm UTC](https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902/1 "2024-03-21T19:16:40Z")

</div>

I have someone submitting a form and I want there to be a chat attached to that submission that will be between the person who submitted the form and the role of admin. Does someone have a good tutorial on how to do this. I’ve tried a few different methods and keep screwing it up.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 22, 2024, 12:14am UTC](https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902/2 "2024-03-22T00:14:53Z")

</div>

- Add a Comments table.
- Add a chat component to the details screen of the submission, writing to the Comments table, make sure you pass a value over to reference the submission’s rowID.
- Create a multiple relation from the Submissions table to the Comments table using the rowID.
- Go back to your chat component to reference the relation as the data source.
- If more people than just the person who submitted the form and admins can view the submission, use appropriate visibility conditions for the chat component.

---

<div class="post-metadata">

**Author:** ![tkd\_hayden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tkd_hayden/32/67200_2.png) [@tkd\_hayden](https://community.glideapps.com/u/tkd_hayden)\
**Post date:** [March 22, 2024, 5:00pm UTC](https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902/3 "2024-03-22T17:00:32Z")

</div>

How would you go about utilizing Push Notifications to let each person know when the other has posted.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 23, 2024, 12:34am UTC](https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902/4 "2024-03-23T00:34:22Z")

</div>

- Create a query pointing to your Users table, filter all rows that have the role as Admin.
- Create a lookup pulling back all their emails.
- If you haven’t got the person who submitted the form’s email (you should), add that to your form submission flow.
- Create a Make Array column, joining the Admin emails and the submitter’s email.
- Create a remove element from array column, remove the signed-in user’s email from the make array result above.
- In the comments table, create a relation back to the form submissions table, and lookup the final array above.
- Every time users submit a new comment, send a push notification to the lookup array of emails.

---

<div class="post-metadata">

**Author:** ![Collin\_Stedham](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Collin\_Stedham](https://community.glideapps.com/u/Collin_Stedham)\
**Post date:** [March 23, 2024, 1:33am UTC](https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902/5 "2024-03-23T01:33:38Z")

</div>

Could you just make a “new screen” that shows “on submit”? You could add a chat component there and have a chat that uses row owners and Big Tables to seamlessly move chats?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 23, 2024, 1:48am UTC](https://community.glideapps.com/t/private-chat-attached-to-form-submission/71902/6 "2024-03-23T01:48:29Z")

</div>

> [@Collin\_Stedham](#):
>
> Could you just make a “new screen” that shows “on submit”?

What do you mean by this?

> [@Collin\_Stedham](#):
>
> You could add a chat component there and have a chat that uses row owners and Big Tables to seamlessly move chats?

What do you mean by “seamlessly move”?
