# reconize if the form shows in a dialog

**URL:** <https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312>\
**Category:** Classic Servoy\
**Created:** [February 20, 2004, 8:14pm UTC](https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312 "2004-02-20T20:14:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [February 20, 2004, 8:14pm UTC](https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312/1 "2004-02-20T20:14:49Z")

</div>

I would like to have a function like boolean = application.formInDialog to check if a form is shown as a dialog or not (application.showFormInDialog). Sure, we can do that by setting a global but the suggestion function is more elegant…

Thanks…

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [February 20, 2004, 8:50pm UTC](https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312/2 "2004-02-20T20:50:37Z")

</div>

You got my vote… ![:D]( "Very Happy")

---

<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:** [February 21, 2004, 9:54am UTC](https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312/3 "2004-02-21T09:54:26Z")

</div>

just curious. when whould you call that?

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [February 21, 2004, 10:30am UTC](https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312/4 "2004-02-21T10:30:53Z")

</div>

I use the same form both in a normal show and via showFormInDialog

Example 1:  
I have a button to close a window/go back to previous form. The method would differ if I am working in a dialog…

Example 2: I call another form from the dialog. When I do so from a normal show I can do that via the same show call. When I would use that from a dialog I will see that form appear in the background while I want it to appear in the foreground…

---

<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:** [February 21, 2004, 12:12pm UTC](https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312/5 "2004-02-21T12:12:01Z")

</div>

added isFormInDialog(form) to application node. (2.0RC7)

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [February 22, 2004, 6:31pm UTC](https://forum.servoy.com/t/reconize-if-the-form-shows-in-a-dialog/1312/6 "2004-02-22T18:31:25Z")

</div>

Thanks… Again…
