# How do I remove overlay on a control?

**URL:** <https://forum.electra.one/t/how-do-i-remove-overlay-on-a-control/3036>\
**Category:** General discussion\
**Created:** [June 23, 2024, 7:29am UTC](https://forum.electra.one/t/how-do-i-remove-overlay-on-a-control/3036 "2024-06-23T07:29:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Electrolove](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/electrolove/32/2440_2.png) [@Electrolove](https://forum.electra.one/u/Electrolove)\
**Post date:** [June 23, 2024, 7:29am UTC](https://forum.electra.one/t/how-do-i-remove-overlay-on-a-control/3036/1 "2024-06-23T07:29:36Z")

</div>

I am using this to set overlay on a control.

controls.get(1):getValue():setOverlayId(1)

How do I remove overlay on a control?

I have tried this.

controls.get(1):getValue():setOverlayId(-1)

It works and gives no error but is it the right way?

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [June 27, 2024, 6:08am UTC](https://forum.electra.one/t/how-do-i-remove-overlay-on-a-control/3036/2 "2024-06-27T06:08:12Z")

</div>

At this moment the only way is to assign an empty overlay. I am taking a note that removing an overlay assignment would be handy.

---

<div class="post-metadata">

**Author:** ![Electrolove](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/electrolove/32/2440_2.png) [@Electrolove](https://forum.electra.one/u/Electrolove)\
**Post date:** [June 27, 2024, 9:21am UTC](https://forum.electra.one/t/how-do-i-remove-overlay-on-a-control/3036/3 "2024-06-27T09:21:25Z")

</div>

Thanks Martin.
