# Runtime hiding tabs from panel

**URL:** <https://forum.servoy.com/t/runtime-hiding-tabs-from-panel/13357>\
**Category:** Classic Servoy\
**Created:** [December 22, 2010, 11:13am UTC](https://forum.servoy.com/t/runtime-hiding-tabs-from-panel/13357 "2010-12-22T11:13:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichelvGent](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MichelvGent](https://forum.servoy.com/u/MichelvGent)\
**Post date:** [December 22, 2010, 11:13am UTC](https://forum.servoy.com/t/runtime-hiding-tabs-from-panel/13357/1 "2010-12-22T11:13:36Z")

</div>

Hi,

Is it possible to hide tabls from a tabpanel based on data from a selected record?

Thanks in advance

Michel

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [December 22, 2010, 1:14pm UTC](https://forum.servoy.com/t/runtime-hiding-tabs-from-panel/13357/2 "2010-12-22T13:14:31Z")

</div>

Yes, you can add and remove tabs dynamically using the following functions:

```auto
forms.yourForm.elements.yourTabpanel.addTab(...);
forms.yourForm.elements.yourTabpanel.removeTabAt(index);

```

So in your case, you could do that in the onRecordSelection method of your main form.

---

<div class="post-metadata">

**Author:** ![MichelvGent](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MichelvGent](https://forum.servoy.com/u/MichelvGent)\
**Post date:** [December 22, 2010, 2:12pm UTC](https://forum.servoy.com/t/runtime-hiding-tabs-from-panel/13357/3 "2010-12-22T14:12:45Z")

</div>

Thanks, I’ll check it out.

Michel
