# Firing of onShow / onHide when changing tabs in wrong order

**URL:** <https://forum.servoy.com/t/firing-of-onshow-onhide-when-changing-tabs-in-wrong-order/5160>\
**Category:** Classic Servoy\
**Created:** [December 2, 2005, 9:18pm UTC](https://forum.servoy.com/t/firing-of-onshow-onhide-when-changing-tabs-in-wrong-order/5160 "2005-12-02T21:18:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [December 2, 2005, 9:18pm UTC](https://forum.servoy.com/t/firing-of-onshow-onhide-when-changing-tabs-in-wrong-order/5160/1 "2005-12-02T21:18:35Z")

</div>

Hello,

I have noticed that when the user hits a tab you can event prevent from loading that tab by adding a return false of the onHide method in the form of the tab you want to leave. (oops, long sentence)

The only problem is, that the onShow method of the form behind the tab the user clicks on is fired before the onHide method of the current form is fired. That’s not logical and disturbing my flow ![:D]( "Very Happy")

Can this be changed?

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [December 8, 2005, 11:56am UTC](https://forum.servoy.com/t/firing-of-onshow-onhide-when-changing-tabs-in-wrong-order/5160/2 "2005-12-08T11:56:09Z")

</div>

can’t reproduce it

I have a form with 2 tabs

first tab does this on onhide:

application.output(“onhide tab1”)  
return false;

the second tab does this onshow:

application.output(“onshow tab2”)

And i never but never see the onshow of tab2.

johan
