Hide the field inside the table

Hello Kintone developers

As I mention to the title, is there any other way to hide the field inside the table using javascript or even plugin. I already read the Kintone there were limitation to use the setFiledShown function which is the function cannot hide the field inside the table. But I need to ask you guys is there any other way to hide it.

 

Thanks

Hello Zulfahami

 

Like you mentioned, you cannot hide fields inside a table due to the limitation of the setFieldShown.

 

You can hide fields inside a table using the DOM manipulation, but be aware that the DOM manipulation is not recommended by Kintone because it might not suddenly work one day after maintenance when the DOM structure changes.

 

So, if you have only one table set in your app,

you could use the following CSS:

.subtable-gaia th:nth-child(7),
.subtable-gaia td:nth-child(7) {
display: none;
}

If there’s multiple tables, you will need to specify the unique class name of each table like the following:

.subtable-5541742 th:nth-child(7),
.subtable-5541742 td:nth-child(7) {
display: none;
}

Or you could use the method that I noted in the following past post, slightly different, but pretty much the same.

https://developer.kintone.io/hc/en-us/community/posts/360016016853-Question-About-setFieldShown

 

Thank you