Question

I have a window and a window drawer popping out from that window (Window drawers). The problem is that a form is being shown as an window item and another optional form is shown if the windows drawer is shown. I am currently submitting my window form and I would like to submit the other form too (or to assign some new fields to the form when the drawer is opened) in the same submit query. Can this be made ? Using version 3 of ExtJS.

Thanks.

Was it helpful?

Solution

You should be able to submit the form programmatically. Assuming you are using FormPanels, it would be like myFormPanel.getForm().submit(); You could make this call from the click handler of the submit button in the other form, or you could make one submission dependent on the other by submitting from the actioncomplete handler of the other form.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top