# Disabling adding table rows in kintone

**URL:** https://forum.kintone.dev/t/disabling-adding-table-rows-in-kintone/396
**Category:** General
**Created:** [March 16, 2021, 12:57pm UTC](https://forum.kintone.dev/t/disabling-adding-table-rows-in-kintone/396 "2021-03-16T12:57:44Z")
**Posts on this page:** 4
**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: [March 16, 2021, 12:57pm UTC](https://forum.kintone.dev/t/disabling-adding-table-rows-in-kintone/396/1 "2021-03-16T12:57:44Z")

</div>

I’ve inherited some customizations in our Kintone system that seemed to have disabled the adding of table rows in the table feature of an app.

I’m having some trouble finding the code and wanted to know if anyone knew what it might look like so I could enable the rows again.&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: [March 17, 2021, 5:23pm UTC](https://forum.kintone.dev/t/disabling-adding-table-rows-in-kintone/396/2 "2021-03-17T17:23:51Z")

</div>

Hello Heather,

This is one of the examples of how to disable adding/deleting table rows in Kintone. The key is that it needs to utilize DOM manipulation to hide the button, so it should always have “subtable-operation-gaia” in the script to do something related to the table.

```
(function() {
"use strict";
kintone.events.on(['app.record.create.show','app.record.edit.show'], function(event) {
[].forEach.call(document.getElementsByClassName("subtable-operation-gaia"), function(button){
button.style.display = 'none';
});
});
})();

```

I hope this helps

---

<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: [March 17, 2021, 5:58pm UTC](https://forum.kintone.dev/t/disabling-adding-table-rows-in-kintone/396/3 "2021-03-17T17:58:25Z")

</div>

Thank you so much! This does help in my mini-investigation.

---

<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: [April 9, 2021, 10:53am UTC](https://forum.kintone.dev/t/disabling-adding-table-rows-in-kintone/396/4 "2021-04-09T10:53:31Z")

</div>

Thank you Yuzo Arai san,&nbsp;  
You save my day.
