# Google Apps Script Web App open a new window

**URL:** <https://community.glideapps.com/t/google-apps-script-web-app-open-a-new-window/16770>\
**Category:** Ask for Help\
**Created:** [October 5, 2020, 10:54am UTC](https://community.glideapps.com/t/google-apps-script-web-app-open-a-new-window/16770 "2020-10-05T10:54:07Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Ryan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan/32/15941_2.png) [@Ryan](https://community.glideapps.com/u/Ryan)\
**Post date:** [October 10, 2020, 9:38am UTC](https://community.glideapps.com/t/google-apps-script-web-app-open-a-new-window/16770/21 "2020-10-10T09:38:41Z")

</div>

Thanks guys,  
So I tried to remove the ‘e’ parameter:

_function onChange(){_  
_var ActiveSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(“Next Event”);_  
_if(range.getColumn() == 4 && range.getRow() \>1){_

And it is now failing with an “_ReferenceError: range is not defined at onChange(Code:5:1)_” error message when trying to trigger from Glide by incrementing D2 cell value.

---

<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:** [October 10, 2020, 9:41am UTC](https://community.glideapps.com/t/google-apps-script-web-app-open-a-new-window/16770/22 "2020-10-10T09:41:47Z")

</div>

Can you have a sheet with dummy data and your script so we can jump in and help?

---

<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:** [October 10, 2020, 12:48pm UTC](https://community.glideapps.com/t/google-apps-script-web-app-open-a-new-window/16770/23 "2020-10-10T12:48:04Z")

</div>

Yeah, samples would help. You can’t just chop out code without accounting for that change. The script needs to be completely reworked because the event parameter isn’t passed in.

---

<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:** [October 12, 2020, 10:27am UTC](https://community.glideapps.com/t/google-apps-script-web-app-open-a-new-window/16770/24 "2020-10-12T10:27:28Z")

</div>

This is now resolved. I rewrote the script a bit to bypass the event thing he used at the start.

[Previous page](https://community.glideapps.com/t/google-apps-script-web-app-open-a-new-window/16770.md?page=1)
