# Ending on a specific Form

**URL:** <https://forum.servoy.com/t/ending-on-a-specific-form/212>\
**Category:** Classic Servoy\
**Created:** [July 27, 2003, 11:51am UTC](https://forum.servoy.com/t/ending-on-a-specific-form/212 "2003-07-27T11:51:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [July 27, 2003, 11:51am UTC](https://forum.servoy.com/t/ending-on-a-specific-form/212/1 "2003-07-27T11:51:08Z")

</div>

Let’s say I have the form: start.  
On the form: start I have a button with method:

> applicationFormInDialog(forms.form2,-1,-1,200,500);

This opens form2 in a Dialog. So far so good.  
On this form I have a button with method:

> forms.form3.controller.show();  
> application.closeFormDialog();

As far as I can tell, the solution must go the form3 and closes the Dialog.  
It does close the dialog, but form3 blinks for 1 second and than goes back to form: start. Somehow a method returns automaticly back to the form where it is started. Is this a bug, or am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://forum.servoy.com/u/maarten)\
**Post date:** [July 27, 2003, 7:13pm UTC](https://forum.servoy.com/t/ending-on-a-specific-form/212/2 "2003-07-27T19:13:50Z")

</div>

try closing your dialog first before going to another form:

application.closeFormDialog();  
forms.form3.controller.show();

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [July 28, 2003, 7:17am UTC](https://forum.servoy.com/t/ending-on-a-specific-form/212/3 "2003-07-28T07:17:48Z")

</div>

Yes! that did the trick!  
Thanks.
