# Working "under" a form in dialog

**URL:** <https://forum.servoy.com/t/working-under-a-form-in-dialog/11244>\
**Category:** Classic Servoy\
**Created:** [October 6, 2009, 8:04am UTC](https://forum.servoy.com/t/working-under-a-form-in-dialog/11244 "2009-10-06T08:04:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![diana.bodnarescu](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@diana.bodnarescu](https://forum.servoy.com/u/diana.bodnarescu)\
**Post date:** [October 6, 2009, 8:04am UTC](https://forum.servoy.com/t/working-under-a-form-in-dialog/11244/1 "2009-10-06T08:04:45Z")

</div>

Hello,

I am using Servoy 3.5.10 and I am trying to create this functionality: to open a form in dialog using the method application.showFormInDiaog, and after the form is popped, to still be able to work in the form that is showed under the dialog. I thought this is possible using a modal dialog,but it seems it is not possible using either one of them (modal or non modal). I use this combination of parameters:  
application.showFormInDialog( ‘waptz\_contact’, null, null, null, null, ‘Form in dialog’, false, null, null, false)  
also:  
application.showFormInDialog( ‘waptz\_contact’, null, null, null, null, ‘Form in dialog’, false, null, null, true)  
Neither allowed me to work under the form in dialog, I have to close the dialog before being able to work in the application.  
Can you give me an advice in how to make this work?

Many thanks in advance,  
Diana

---

<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:** [October 6, 2009, 8:39am UTC](https://forum.servoy.com/t/working-under-a-form-in-dialog/11244/2 "2009-10-06T08:39:16Z")

</div>

Diana,

you have to give the FID a name. (in the sample called: ‘mydialog’)  
Have you tried that?  
this is the sample:

```auto
//Show the specified form in a modal dialog 'contactsdialog', on default initial location and size (x,y,w,h)
//application.showFormInDialog(forms.contacts, 'contactsdialog', true);
//Note: No code is executed after the showFormInDialog until the dialog is closed if it is created as a modal dialog.
//Show the specified form in a non-modal dialog with a specified name, on default initial location and size (x,y,w,h)
//application.showFormInDialog(forms.contacts,'contactsdialog',false);
//Show the specified form in a modal dialog, at a specified initial location and size with custom title, not resizable but with text toolbar, 
application.showFormInDialog(forms.contacts,100,80,500,300,'my own dialog title',false,true,'mydialog',true);

```

---

<div class="post-metadata">

**Author:** ![diana.bodnarescu](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@diana.bodnarescu](https://forum.servoy.com/u/diana.bodnarescu)\
**Post date:** [October 6, 2009, 9:03am UTC](https://forum.servoy.com/t/working-under-a-form-in-dialog/11244/3 "2009-10-06T09:03:18Z")

</div>

It woks,thanks a lot Harjo!  
Diana
