# Action button to add new column

**URL:** <https://community.glideapps.com/t/action-button-to-add-new-column/22898>\
**Category:** Ask for Help\
**Created:** [February 16, 2021, 10:13pm UTC](https://community.glideapps.com/t/action-button-to-add-new-column/22898 "2021-02-16T22:13:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [March 5, 2021, 4:17am UTC](https://community.glideapps.com/t/action-button-to-add-new-column/22898/7 "2021-03-05T04:17:57Z")

</div>

> [@mkukulka](#):
>
> When I run the script from [script.google.com](http://script.google.com) it runs OK. Bur how to set a button on GlideApp to run the script to get next column on spreadsheet and next row in app? I tried to use it with webhook but it is not workin.

You can use Glide to change a value in your spreadsheet (anywhere), and then detect that change with an onChange() trigger. That trigger can then fire your script. I demonstrated this technique in my [Apps Script JSON API tutorial](https://community.glideapps.com/t/using-app-script-with-a-json-api/20051).

---

_[View the full topic](https://community.glideapps.com/t/action-button-to-add-new-column/22898)._
