Canceling new row, form don't close?

Hi all.

Grid with add new row button, opens form in modal. If user cancel this form, how to close modal instead of staying in form app and then, exit button is needed to close?

Some idea on this? I don’t see any option to close automatically the form.

Remove the Cancel button from the toolbar.
Create a Javascript button.

Target: Same Window
Show in Update mode: No
Show in the inserting mode: Yes
Code: window.parent.tb_remove();

That’s it.

jsb

[QUOTE=jsbinca;24388]Remove the Cancel button from the toolbar.
Create a Javascript button.

Target: Same Window
Show in Update mode: No
Show in the inserting mode: Yes
Code: window.parent.tb_remove();

That’s it.

jsb[/QUOTE]

Hi jsb,

I had Something like like this in mi mind. Just curious,there are an option to close after update,but no after create.

Thanks