# Add a button on a screen

**URL:** https://community.glideapps.com/t/add-a-button-on-a-screen/81252
**Category:** Ask for Help
**Tags:** tutorial
**Created:** [April 9, 2025, 5:55pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252 "2025-04-09T17:55:30Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 9, 2025, 5:55pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/1 "2025-04-09T17:55:30Z")

</div>

Hi all,

I have added some brand new button on a brand new screen. When I apply the button action it **ONLY** affects the admin user!

How can I affect a user instead of the admin?

Thanks

p.s. This brand new button checks some boolean value in some table

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [April 9, 2025, 7:08pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/2 "2025-04-09T19:08:13Z")

</div>

It’s unclear what user experience you are building, maybe you could share more in detail.

Without knowing the details, I would suggest you use action components (such as a button) in a collection (collections are a component type in the Layout Editor) or on details screen (the screen you can navigate to after clicking on a collection item).

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 9, 2025, 7:24pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/3 "2025-04-09T19:24:20Z")

</div>

Not sure I understand you!

It’s a _simple_ portal application with a single button and two types of user: admin and a user. Created a button. That button only affects the admin and NOT the user.

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [April 9, 2025, 7:36pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/4 "2025-04-09T19:36:33Z")

</div>

**Summary** : set a visibility condition on the button or condition on the action by pointing to a column in the Users table.

* * *

When you select the button component, on the right you can configure it. Head to the second tab called “Options”, and there you can set a visibility condition which you set by pointing to the Users table and column where you set the roles.

Alternatively, the button triggers an action. You can also set conditions at the action level when you choose the action in the Layout Editor. Same as above, you would set the conditions a column in the Users table.

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 10, 2025, 2:18pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/5 "2025-04-10T14:18:54Z")

</div>

The problem I am having has to do with **this item** vs **user profile\>user profile row**

**This item** boolean is good enough, but the check is for **user profile** (visibility)

How can I reconcile the two?

---

<div class="post-metadata">

### Author: ![fk1214](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fk1214/32/71058_2.png) [@fk1214](https://community.glideapps.com/u/fk1214)
#### Post date: [April 10, 2025, 2:39pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/6 "2025-04-10T14:39:18Z")

</div>

If you’re wanting to make a button that is only visible to admins, make sure you have a **boolean** column in the **Users** table (Call it “Admin?” or something), and you simply check the boolean for users you want to make admin. This item is for the item you’re looking at. If the button’s on a detail screen, it will be for the item that detail screen is for. If it’s inside a collection, it will be for that item you click the button from. You should use **User Profile \> User Profile Row** all the time, that is always gonna be for the row of the signed in user in the Users table. So just set your button’s visiblity condition to **User Profile \> User Profile Row \> Admin?** is checked.

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 10, 2025, 5:40pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/7 "2025-04-10T17:40:11Z")

</div>

Forget about the button for a sec.

There is a boolean column that exists for all users, including admin.

if I happen to set the boolean using **this item** then the variable is only set for the admin user.

if that boolean variable is set for **user profile\>user profile row** then it is set for a particular user.

if I happen to have a long (and dynamic) list of users, how can I set and later check for that same boolean?

I can only refer you to my most recent post. (visibility check is only a particular user)

Thank you for your answer

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 10, 2025, 5:59pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/8 "2025-04-10T17:59:34Z")

</div>

What I am trying to achieve is hide all normal users on some screen (I rely on Visibility) once the admin sets a boolean value from a different screen?

(Visibilty is per user)

How can that be accomplished?

Thanks a bunch

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 10, 2025, 9:57pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/9 "2025-04-10T21:57:31Z")

</div>

I wish there was a way to create a _single field_

(that is shared between all users)

---

<div class="post-metadata">

### Author: ![fk1214](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fk1214/32/71058_2.png) [@fk1214](https://community.glideapps.com/u/fk1214)
#### Post date: [April 11, 2025, 6:26am UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/10 "2025-04-11T06:26:30Z")

</div>

On the **detail screen** of a specific user, if you set the boolean from there, then it will apply for that user

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 11, 2025, 3:06pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/11 "2025-04-11T15:06:21Z")

</div>

True.

what about **ALL** users?

I would like to set a variable, and to have variable be applied to ALL users of the system?

---

<div class="post-metadata">

### Author: ![fk1214](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fk1214/32/71058_2.png) [@fk1214](https://community.glideapps.com/u/fk1214)
#### Post date: [April 11, 2025, 3:26pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/12 "2025-04-11T15:26:04Z")

</div>

Sorry I’m not too sure right now.

---

<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: [April 11, 2025, 3:34pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/13 "2025-04-11T15:34:48Z")

</div>

- Create a helper table, name it Settings or something like that.
- Add a field in that table that you want to write the value to.
- Cast that field to all rows in the Users table, by a single value column.

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 11, 2025, 5:12pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/14 "2025-04-11T17:12:37Z")

</div>

Thank you. Thank you. Can you please explain what it means to cast?

---

<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: [April 11, 2025, 11:49pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/15 "2025-04-11T23:49:02Z")

</div>

You use a Single Value \> first in your Users table and point it to the “helper” table above. “Cast” means getting that value to show up in all rows.

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 12, 2025, 6:24pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/16 "2025-04-12T18:24:05Z")

</div>

I am sorry, cast using `Single value`? Using what? How is casting done?

---

<div class="post-metadata">

### Author: ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)
#### Post date: [April 12, 2025, 9:16pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/17 "2025-04-12T21:16:00Z")

</div>

Glide have several computed columns, one of them is Single Value column, use it.

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 12, 2025, 9:28pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/18 "2025-04-12T21:28:36Z")

</div>

But I don’t have write access to those computed columns. Those computed fields do not appear on `user profile` (users table)

---

<div class="post-metadata">

### Author: ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)
#### Post date: [April 12, 2025, 9:33pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/19 "2025-04-12T21:33:16Z")

</div>

If you need to access to write to single row table from user table, so one of the way is use silgle value whole row and use it in set column action or open edit screen using Single value from whole row

> [@Mastering the Mighty Single Value → WHOLE ROW](https://community.glideapps.com/t/mastering-the-mighty-single-value-whole-row/57071):
>
> Learn to master the Single Value → WHOLE ROW feature Use this feature to easily link to the details screen of a: point_right home screen… point_right sign up form… point_right about page… point_right …and more! [[Glide: Custom Forms with Single Value → Whole Row] ](https://www.youtube.com/watch?v=Dr1pCuL2Mg0) Thanks to @Darren_Murphy for one of the ideas presented in this video!

Just use edit screen instead details screen

---

<div class="post-metadata">

### Author: ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)
#### Post date: [April 12, 2025, 10:03pm UTC](https://community.glideapps.com/t/add-a-button-on-a-screen/81252/20 "2025-04-12T22:03:56Z")

</div>

Fair enough, kudos. Now, how can one do something upon loading a screen?

[Next page](https://community.glideapps.com/t/add-a-button-on-a-screen/81252.md?page=2)
