how do I close a form?

I have a button than when clicked it opens a form (date picker, input field etc). What I want to do is that when they submit the form i want to be able to close it. I.e. make the button, datepicker, input fields and what not go away. If they want them back they should just be able to click on the button that opened it again. What is the command for this? I tired “close:true” but, that didn’t work. I think that only applies to tabs.

Hi,

Does your form appear in a popup window? If so, you can apply hide() method to this window to hide the form. The window won’t be destroyed, so you can show it back again easily. Check the snippet, please: http://webix.com/snippet/7ba5b24d

Note that close() method for the window destroys it together with its child views, so you will need to recreate the form in this case.

Thanks, I had to modify my code a bit but, other than that the example provided does the job very nicely.