# How to hide space elements?

**URL:** <https://forum.kintone.dev/t/how-to-hide-space-elements/243>\
**Category:** General\
**Created:** [February 4, 2022, 5:21am UTC](https://forum.kintone.dev/t/how-to-hide-space-elements/243 "2022-02-04T05:21:13Z")\
**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 4, 2022, 5:21am UTC](https://forum.kintone.dev/t/how-to-hide-space-elements/243/1 "2022-02-04T05:21:13Z")

</div>

I use kintone.app.record.getSpaceElement().style.display = “none” to hide but it is still there. How to hide the space element so that it won’t be shown on page?

&nbsp; &nbsp; &nbsp;kintone.app.record.getSpaceElement(‘space\_for\_create\_button’).disabled = true;

&nbsp;

kintone.app.record.getSpaceElement(‘space\_for\_update\_button’).disabled = true;

&nbsp; &nbsp; &nbsp; kintone.app.record.getSpaceElement(‘space\_for\_create\_button’).style.display = “none”;

&nbsp; &nbsp; &nbsp; &nbsp; kintone.app.record.getSpaceElement(‘space\_for\_update\_button’).style.display = “none”;

---

<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 5, 2022, 3:24pm UTC](https://forum.kintone.dev/t/how-to-hide-space-elements/243/2 "2022-02-05T15:24:23Z")

</div>

Hi annaylee,

&nbsp;

The parent element of the space field has a different div element. The following should help you.

&nbsp;

```
kintone.app.record.getSpaceElement().parentNode.style.display = "none";

```

&nbsp;

Hopefully, this helps.
