# Actions of a button

**URL:** <https://community.glideapps.com/t/actions-of-a-button/3252>\
**Category:** Ask for Help\
**Created:** [January 2, 2020, 1:14am UTC](https://community.glideapps.com/t/actions-of-a-button/3252 "2020-01-02T01:14:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scienter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/scienter/32/2445_2.png) [@scienter](https://community.glideapps.com/u/scienter)\
**Post date:** [January 2, 2020, 1:14am UTC](https://community.glideapps.com/t/actions-of-a-button/3252/1 "2020-01-02T01:14:39Z")

</div>

Among the actions of a button how can we connect an apps script?

---

<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:** [January 2, 2020, 1:26am UTC](https://community.glideapps.com/t/actions-of-a-button/3252/2 "2020-01-02T01:26:29Z")

</div>

You can’t attach a Google script to a button action. You would need to make some sort of change to the sheet’s data that would trigger an onChange event and run the script.

---

<div class="post-metadata">

**Author:** ![GRobbins](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/grobbins/32/3924_2.png) [@GRobbins](https://community.glideapps.com/u/GRobbins)\
**Post date:** [March 5, 2020, 10:05pm UTC](https://community.glideapps.com/t/actions-of-a-button/3252/3 "2020-03-05T22:05:34Z")

</div>

Maybe a crazy question, but can a button open an online list?

I have two lists on my homepage, “upcoming events” and “past events”.

As events grow, lists grow as well. To save valuable space, I would prefer a button that would open the specified list … if this is possible?

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [March 5, 2020, 10:32pm UTC](https://community.glideapps.com/t/actions-of-a-button/3252/4 "2020-03-05T22:32:52Z")

</div>

I would recommend just using a List Relation component in place of your inline list components. It will show how many are in the list and when clicked show the whole list.

---

<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:** [March 6, 2020, 12:55am UTC](https://community.glideapps.com/t/actions-of-a-button/3252/5 "2020-03-06T00:55:54Z")

</div>

There’s also a link to screen action on buttons, where you can select a sheet to show a list.

[https://docs.glideapps.com/all/reference/actions/link-to-screen](https://docs.glideapps.com/all/reference/actions/link-to-screen)
