PDA

View Full Version : How to combine two FormPanels to be part of the same form?



wavedan
12 Aug 2010, 3:14 AM
I have two FormPanel defined like this:

var registrationformPanel = new Ext.form.FormPanel({
...
}



var registrationformPanel2 = new Ext.form.FormPanel({
...
}


and both forms have separate and unique fields.

For submitting I use a function like this:

registrationformPanel.form.submit({ .. })
How can I make sure that they are part of the same submit function without having a separate form.submit function for each form?

j_mmontero
12 Aug 2010, 5:24 AM
Why not having everything in one single FormPanel?

wavedan
12 Aug 2010, 5:25 AM
Why not having everything in one single FormPanel?
Because it didn't work out layoutwise for me.

Anyways, I have used tabpanels and put everything in a single FormPanel now.