# Is there a way to know if a control is in current active control set?

**URL:** <https://forum.electra.one/t/is-there-a-way-to-know-if-a-control-is-in-current-active-control-set/2972>\
**Category:** Developers\
**Created:** [June 1, 2024, 9:18am UTC](https://forum.electra.one/t/is-there-a-way-to-know-if-a-control-is-in-current-active-control-set/2972 "2024-06-01T09:18:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![P4U2Player](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@P4U2Player](https://forum.electra.one/u/P4U2Player)\
**Post date:** [June 1, 2024, 9:18am UTC](https://forum.electra.one/t/is-there-a-way-to-know-if-a-control-is-in-current-active-control-set/2972/1 "2024-06-01T09:18:18Z")

</div>

In LUA script I want to know a certain control is currently in active control set or not.  
I know how to get current active control set by `pages.getActiveControlSet()`, but  
I cannot find the way to know which control set a control belongs to.

For example, I want to do this;

```auto
local activeControlSet = pages.getActiveControlSet()
local controlSetOfControl = control.getControlSet() -- This function is not available in current LUA function library
if controlSetOfControl == activeControlSet then
  ...
end

```

Or, more simple way;

```auto
if control.isActive() then
  ...
end

```

Can I achieve similar result by other way?

---

<div class="post-metadata">

**Author:** ![P4U2Player](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@P4U2Player](https://forum.electra.one/u/P4U2Player)\
**Post date:** [June 1, 2024, 3:57pm UTC](https://forum.electra.one/t/is-there-a-way-to-know-if-a-control-is-in-current-active-control-set/2972/2 "2024-06-01T15:57:12Z")

</div>

I also want know how to get the page which a control belong to.

I want to filter out the controls which are currently inactive or not included in current page in certain situation, so I should know where a control belongs to.

---

<div class="post-metadata">

**Author:** ![HDV](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@HDV](https://forum.electra.one/u/HDV)\
**Post date:** [February 9, 2026, 9:17am UTC](https://forum.electra.one/t/is-there-a-way-to-know-if-a-control-is-in-current-active-control-set/2972/3 "2026-02-09T09:17:04Z")

</div>

Have you found a solution? May be I can support you.

Dieter

---

<div class="post-metadata">

**Author:** ![P4U2Player](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@P4U2Player](https://forum.electra.one/u/P4U2Player)\
**Post date:** [February 9, 2026, 9:59am UTC](https://forum.electra.one/t/is-there-a-way-to-know-if-a-control-is-in-current-active-control-set/2972/4 "2026-02-09T09:59:04Z")

</div>

Hi Dieter,

Thanks for finding this topic!

Unfortunately I haven’t discovered a solution for this yet.
