# Best approach to auto-send a message when a switch component is togged

**URL:** https://community.glideapps.com/t/best-approach-to-auto-send-a-message-when-a-switch-component-is-togged/17362
**Category:** Ask for Help
**Created:** [October 20, 2020, 3:05pm UTC](https://community.glideapps.com/t/best-approach-to-auto-send-a-message-when-a-switch-component-is-togged/17362 "2020-10-20T15:05:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Todd\_Lichtenwalter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_lichtenwalter/32/12231_2.png) [@Todd\_Lichtenwalter](https://community.glideapps.com/u/Todd_Lichtenwalter)
#### Post date: [October 20, 2020, 3:05pm UTC](https://community.glideapps.com/t/best-approach-to-auto-send-a-message-when-a-switch-component-is-togged/17362/1 "2020-10-20T15:05:07Z")

</div>

Seeking suggestions for:

My students have items in their inventory. When they toggle to “use” the item, I want to be notified without them having to do anything other than toggle the switch. I need to know the name of the item so I am thinking I will need a column in the materials source table containing a custom message I created indicating so, and then when they toggle, the message comes to my computer.

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [October 20, 2020, 3:07pm UTC](https://community.glideapps.com/t/best-approach-to-auto-send-a-message-when-a-switch-component-is-togged/17362/2 "2020-10-20T15:07:48Z")

</div>

Zapier or Script. I use a script (because it’s free) that looks for a change to Column X and then sends an email notification using an OnChange Trigger.

---

<div class="post-metadata">

### Author: ![Todd\_Lichtenwalter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_lichtenwalter/32/12231_2.png) [@Todd\_Lichtenwalter](https://community.glideapps.com/u/Todd_Lichtenwalter)
#### Post date: [October 20, 2020, 3:24pm UTC](https://community.glideapps.com/t/best-approach-to-auto-send-a-message-when-a-switch-component-is-togged/17362/3 "2020-10-20T15:24:23Z")

</div>

Are you saying Script is a free service unlike Zapier which is paid. Or are you saying to just script it out in the google sheet and apply that to the column?

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [October 20, 2020, 3:25pm UTC](https://community.glideapps.com/t/best-approach-to-auto-send-a-message-when-a-switch-component-is-togged/17362/4 "2020-10-20T15:25:59Z")

</div>

The second. Using a Google script, you can achieve the same thing without using Zapier.

---

<div class="post-metadata">

### Author: ![Todd\_Lichtenwalter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/todd_lichtenwalter/32/12231_2.png) [@Todd\_Lichtenwalter](https://community.glideapps.com/u/Todd_Lichtenwalter)
#### Post date: [October 20, 2020, 3:37pm UTC](https://community.glideapps.com/t/best-approach-to-auto-send-a-message-when-a-switch-component-is-togged/17362/5 "2020-10-20T15:37:43Z")

</div>

> [@Robert\_Petitto](#):
>
> ooks for a change to Column X and then sends an email notification using an OnChange Trigger

ok thank you.
