# Working with the switch component

**URL:** <https://community.glideapps.com/t/working-with-the-switch-component/37641>\
**Category:** Ask for Help\
**Created:** [January 25, 2022, 1:57am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641 "2022-01-25T01:57:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan\_owens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan_owens/32/37129_2.png) [@ryan\_owens](https://community.glideapps.com/u/ryan_owens)\
**Post date:** [January 25, 2022, 1:57am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/1 "2022-01-25T01:57:37Z")

</div>

Hello all,

I’m working with the switch component and would like to replace the boolean “true/false”.  
I used an if-else column for when the user is available it is true then display “text” else “text”. However, I’m missing a connection when displaying the user’s availability, on the front-end.

What am I missing?

 ![Screen Shot 2022-01-24 at 5.48.56 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/a/baab3505905636546106e2a385d084d189e64d8f.jpeg)  
 ![Screen Shot 2022-01-24 at 5.43.47 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/d/ed9cc2b5446cb849da60f6c624fd4df0289f927b.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 25, 2022, 2:10am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/2 "2022-01-25T02:10:17Z")

</div>

Are you referring to the Hint component in your screen shot?  
How is that configured?

---

<div class="post-metadata">

**Author:** ![ryan\_owens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan_owens/32/37129_2.png) [@ryan\_owens](https://community.glideapps.com/u/ryan_owens)\
**Post date:** [January 25, 2022, 2:11am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/3 "2022-01-25T02:11:21Z")

</div>

Hey Darren,  
Yes

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 25, 2022, 2:13am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/4 "2022-01-25T02:13:54Z")

</div>

Yes?  
So how is it configured? Are you sure it’s pointing at the correct column?

One thing I notice is that your availability column is user specific. This means that users will only be able to see their own status, and not the status of any other users. Is that your intention?

---

<div class="post-metadata">

**Author:** ![ryan\_owens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan_owens/32/37129_2.png) [@ryan\_owens](https://community.glideapps.com/u/ryan_owens)\
**Post date:** [January 25, 2022, 2:18am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/5 "2022-01-25T02:18:24Z")

</div>

I noticed my availability column was user-specific and changed that.  
I would the users to see the status of others as well.

 ![Screen Shot 2022-01-24 at 6.16.22 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/a/4a7cedc28b95bb9301bf39c594ca341b00e6f9b2.jpeg)  
 ![Screen Shot 2022-01-24 at 6.17.07 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/8/982eb1662ed7f1e08acd2a59f44112baa36e2418.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 25, 2022, 2:22am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/6 "2022-01-25T02:22:50Z")

</div>

Okay.  
That logic in the is\_cooking column looks dodgy. You’re comparing the availability of the currently signed in user to the availability of the user in each row. Shouldn’t it just be “if availability is true then this, else that”?

And you still haven’t answered my question about your hint component…

---

<div class="post-metadata">

**Author:** ![ryan\_owens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan_owens/32/37129_2.png) [@ryan\_owens](https://community.glideapps.com/u/ryan_owens)\
**Post date:** [January 25, 2022, 2:27am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/7 "2022-01-25T02:27:00Z")

</div>

Okay, and yes I would like to config hint component text. When the user taps the switches on, then the hint component should display “Happy Cooking” else offline.

---

<div class="post-metadata">

**Author:** ![ryan\_owens](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan_owens/32/37129_2.png) [@ryan\_owens](https://community.glideapps.com/u/ryan_owens)\
**Post date:** [January 25, 2022, 2:29am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/8 "2022-01-25T02:29:25Z")

</div>

![Screen Shot 2022-01-24 at 6.28.52 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/7/e7d9f8eada82c3d7fc08c2f793f2ffc4b587c6d1.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [January 26, 2022, 2:30am UTC](https://community.glideapps.com/t/working-with-the-switch-component/37641/9 "2022-01-26T02:30:18Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
