# Google Sheets built-in "On form submit" trigger

**URL:** <https://community.glideapps.com/t/google-sheets-built-in-on-form-submit-trigger/2542>\
**Category:** Ask for Help\
**Created:** [November 30, 2019, 9:09pm UTC](https://community.glideapps.com/t/google-sheets-built-in-on-form-submit-trigger/2542 "2019-11-30T21:09:45Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/96552_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 29, 2020, 1:45pm UTC](https://community.glideapps.com/t/google-sheets-built-in-on-form-submit-trigger/2542/14 "2020-12-29T13:45:13Z")

</div>

This might seem non-intuitive, but when Glide adds a new row, the changeType will be `EDIT` (not `INSERT ROW`)

EDIT: Actually, I should qualify that. In actual fact, when Glide adds a new row the `changeType` could be `EDIT`, or it could be `INSERT ROW`. Which depends on whether or not there are any empty rows at the bottom of the sheet.

- If there are empty rows, the `changeType` will be `EDIT`
- If there are _NO_ empty rows, the `changeType` will be `INSERT ROW`

In general, I avoid using the changeType, and instead take actions based on the sheet that was changed (`event.source.getActiveSheet().getName();`)

---

_[View the full topic](https://community.glideapps.com/t/google-sheets-built-in-on-form-submit-trigger/2542)._
