# Conditional button based on user

**URL:** <https://community.glideapps.com/t/conditional-button-based-on-user/1612>\
**Category:** Feature Requests\
**Created:** [November 2, 2019, 4:16pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612 "2019-11-02T16:16:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianawilson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ianawilson/32/1260_2.png) [@ianawilson](https://community.glideapps.com/u/ianawilson)\
**Post date:** [November 2, 2019, 4:16pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/1 "2019-11-02T16:16:24Z")

</div>

I’d like to conditionally show a button based on who the user is. I’m interested to have different membership levels to my app, and have different levels have different permissions to take actions.

I know there are a [couple](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251) [other](https://community.glideapps.com/t/conditional-button-placement/966) conditional button topics, but these don’t seem to address the case I’m interested in.

I also know there are a few topics about [making entirely separate views](https://community.glideapps.com/t/rights-access-per-user-or-group/405/3) within the app for different membership levels. But that seems a bit cumbersome to have to maintain a few copies of the same functionality in the app with slightly different functionality.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 2, 2019, 4:59pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/2 "2019-11-02T16:59:34Z")

</div>

The only way I can see this working is for the user to be brought to a detail style layout with per user data, so each user would have a row in a sheet. Then in that sheet, you would use formulas to control an image URL in the sheet. With that you can set up an image component to link to a screen. If the URL is empty for that user, then they shouldn’t see the image button.

Take a look at the Onboarding example in [https://concepts.glideapp.io/](https://concepts.glideapp.io/)  
I don’t use images for buttons, but I think the concept would be the same.

---

<div class="post-metadata">

**Author:** ![ianawilson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ianawilson/32/1260_2.png) [@ianawilson](https://community.glideapps.com/u/ianawilson)\
**Post date:** [November 3, 2019, 12:25am UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/3 "2019-11-03T00:25:40Z")

</div>

Hm, interesting. Okay, I’ll play around with this and see if it works for me. These items are in a list of many items, each of which many members have access to, but I’d love for members to each have different levels of abilities on the items.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 3, 2019, 3:12pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/4 "2019-11-03T15:12:38Z")

</div>

I don’t know if this helps in your case, but here is some more information that might help or give you ideas:

> [@GroupLink Multiple Relations — Matching everything in the column EXCEPT the term in question](https://community.glideapps.com/t/grouplink-multiple-relations-matching-everything-in-the-column-except-the-term-in-question/978):
>
> For GroupLink multiple relations, a term in one column has to match the same term in another column for the relationship to work. However, is there a way to get Glide to return all the rows in one column except the term in question? Eg, (referring to the images below), I don’t want Group 1 to be able to edit their own ‘offers of funding’, but I want them to be able to offer funding to Group 2, Group3, etc, → Group 9 (ie, where the N/A’s are not). If it’s not possible, then h…

> [@Match Multiple Relations --- One Column to Two or More](https://community.glideapps.com/t/match-multiple-relations-one-column-to-two-or-more/1297):
>
> This is difficult to put into words, so I apologize in advance if I butcher it. slight_smile In my app, I’m cross-referencing between our Active section and the Parks section. When a user visits Home \> Active \> Archery, they are presented with info about archery but also a list of parks from our Parks section that have this feature (in this case, archery). I’ve got these 1:1 relationships working without issue—both ADA Accessibility and Archery work as intended. However when I get to Active \>…

---

<div class="post-metadata">

**Author:** ![ianawilson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ianawilson/32/1260_2.png) [@ianawilson](https://community.glideapps.com/u/ianawilson)\
**Post date:** [November 3, 2019, 4:14pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/5 "2019-11-03T16:14:57Z")

</div>

Cool thanks for the ideas! I’ll play around with this stuff and let y’all know if I have more questions

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [November 3, 2019, 6:53pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/6 "2019-11-03T18:53:35Z")

</div>

We don’t support this easily yet, but we plan to improve conditional visibility of elements next year.

---

<div class="post-metadata">

**Author:** ![Rosewebstudio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rosewebstudio/32/12261_2.png) [@Rosewebstudio](https://community.glideapps.com/u/Rosewebstudio)\
**Post date:** [November 3, 2019, 6:55pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/7 "2019-11-03T18:55:26Z")

</div>

Thanks David, will that include conditional visibility of tabs? Cheers 🍻

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [November 3, 2019, 6:56pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/8 "2019-11-03T18:56:08Z")

</div>

That would also make a lot of sense and many people have asked for it. We’ll certainly consider how to do it.

---

<div class="post-metadata">

**Author:** ![Rosewebstudio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rosewebstudio/32/12261_2.png) [@Rosewebstudio](https://community.glideapps.com/u/Rosewebstudio)\
**Post date:** [November 3, 2019, 6:59pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/9 "2019-11-03T18:59:25Z")

</div>

Cool, to my simple brain, spreadsheet assigned to tab with a list of emails who should have access. The tab can still appear if you want, when user accesses tab the data is blank with a button. We can then decide what the button does. Don’t need to over complicate it. The button could do one of these.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/c190115ca77d217a074cf18866fafadffac1d186.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 3, 2019, 8:17pm UTC](https://community.glideapps.com/t/conditional-button-based-on-user/1612/10 "2019-11-03T20:17:34Z")

</div>

I threw together an example to Show/Hide an image button in [https://concepts.glideapp.io/](https://concepts.glideapp.io/) . It’s working using formulas in the sheet, but I couldn’t get it to work using the IF-THEN-ELSE column in the Data tab. See if it would work for your situation.  
I tried using the new IF-THEN-ELSE column to get the column value to equal the image URL, It works, but I still get an empty image placeholder that is clickable. I’m guessing Glide is still placing some sort of value in the virtual column that isn’t truly a blank value. Instead I’m controlling this in the sheet. It’s a little slower to update, but the image button shows/hides depending on the value in a different column. Hope that helps.
