# How to add event handler to Kintone table?

**URL:** https://forum.kintone.dev/t/how-to-add-event-handler-to-kintone-table/247
**Category:** General
**Created:** [February 7, 2022, 8:31pm UTC](https://forum.kintone.dev/t/how-to-add-event-handler-to-kintone-table/247 "2022-02-07T20:31:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)
#### Post date: [February 7, 2022, 8:31pm UTC](https://forum.kintone.dev/t/how-to-add-event-handler-to-kintone-table/247/1 "2022-02-07T20:31:31Z")

</div>

Every kintone table has a little “+” button at the right side of the table to allow the user to add new rows to the table.

How to add an event handler to the table so that every time a new row is added, I can get a reference to the newly added row and do something about the row?

Does the Kintone table have “addRow” event?

```
var quotesTable = document.getElementsByTagName('table')[3];
console.log('quotesTable', quotesTable);
 **qutoesTable.addEventListener();&nbsp;**

```

---

<div class="post-metadata">

### Author: ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)
#### Post date: [February 9, 2022, 1:07am UTC](https://forum.kintone.dev/t/how-to-add-event-handler-to-kintone-table/247/2 "2022-02-09T01:07:09Z")

</div>

Hello annaylee,

The event for the table is the same as other typical fields too.

app.record.create.change.\<tablefieldcode\>  
app.record.edit.change.\<tablefieldcode\>

However, the timing of the event for the Table is:  
&nbsp;when a new row is added to the table  
&nbsp;when a row is deleted from the table

Kintone Developer Program - Record Create Event - Field Change Event  
[https://kintone.dev/en/docs/kintone/js-api/events/record-create-event/#field-change-event](https://kintone.dev/en/docs/kintone/js-api/events/record-create-event/#field-change-event)

Kintone Developer Program - Record Edit Event - Field Change Event  
[https://kintone.dev/en/docs/kintone/js-api/events/record-edit-event/#field-change-event](https://kintone.dev/en/docs/kintone/js-api/events/record-edit-event/#field-change-event)

I hope this helps.
