# 4.1.3 Web formInDialog - Non Modal Doesn't Close

**URL:** <https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089>\
**Category:** Classic Servoy\
**Created:** [August 26, 2009, 11:52pm UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089 "2009-08-26T23:52:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [August 26, 2009, 11:52pm UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/1 "2009-08-26T23:52:10Z")

</div>

I don’t know if it’s in the bug database yet - but on Mac (using Safari 4.0.3 and Firefox) you can open non-modal windows just fine - but if you issue the application.closeFormInDialog[windowName] - it doesn’t work.

Should it?

I’m building an app that spawns child windows and when you close the parent, I want to also close the children (like it does by default in the Smart Client)…

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:** [August 27, 2009, 7:19am UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/2 "2009-08-27T07:19:12Z")

</div>

Tried 4.1.4?

Paul

---

<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:** [August 27, 2009, 5:54pm UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/3 "2009-08-27T17:54:23Z")

</div>

i dont think we have full support for this  
It will not close all child windows of 1 parent

And are you calling close window from that window itself? or from another window?

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [August 28, 2009, 4:47am UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/4 "2009-08-28T04:47:22Z")

</div>

Same issue in 4.1.4.

I’m creating a form instance (using application.createFormInstance) - showing a FID - giving the window the same name as the form (they are all unique).

Then I have a button that just uses application.closeFormDialog(windowName). I give it the name of ANY non-modal window - and the web client just refuses to close it - no matter what.

Works beautiful in the Smart (same code) - so I know the code is closing the right window(s).

---

<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:** [August 28, 2009, 8:35am UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/5 "2009-08-28T08:35:57Z")

</div>

as i said we dont support that. (if all situations are possible in the browser that has to be first investigated)

please make a case.

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [August 30, 2009, 10:24am UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/6 "2009-08-30T10:24:02Z")

</div>

Thanks, Johan - I will do.

CASE: 238576

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [September 10, 2009, 11:14am UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/7 "2009-09-10T11:14:38Z")

</div>

> bobcusick:  
> Thanks, Johan - I will do.
> 
> CASE: 238576

Support for application.closeFormDialog() for non modal dialogs in web client has been added ( will be present in 4.1.5 and 5.0 beta3 ). A non modal dialog can be closed from its parent or from itself.

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [September 28, 2009, 4:26am UTC](https://forum.servoy.com/t/4-1-3-web-formindialog-non-modal-doesnt-close/11089/8 "2009-09-28T04:26:23Z")

</div>

AWESOME, Guys! Looking forward to it!

Thanks very much!
