PDA

View Full Version : Tabbed form validate required data in disabled tab



brk11
22 Jul 2010, 1:12 AM
I have a form tabbed in two panels, one of them disabled. I use deferredRender: true to avoid render items in the disabled tab and don't submit its items. And it seems it works!

My problem appears when I set the allowBlank: false in one of the items in the disabled panel. When I submit the form and I validate it, I get an error because I have required input field not filled in.

Any idea? Could be a bug of the ExtJS 3.2.1?

brk11
22 Jul 2010, 2:44 AM
I'm completely sure this is a bug as you can read at deferredRender definition:



Note: leaving deferredRender as true means that the content within an unactivated tab will not be available. For example, this means that if the TabPanel is within a form (http://www.sencha.com/deploy/dev/docs/output/Ext.form.FormPanel.html), then until a tab is activated, any Fields within unactivated tabs will not be rendered, and will therefore not be submitted and will not be available to either getValues (http://www.sencha.com/deploy/dev/docs/output/Ext.form.BasicForm.html#Ext.form.BasicForm-getValues) or setValues (http://www.sencha.com/deploy/dev/docs/output/Ext.form.BasicForm.html#Ext.form.BasicForm-setValues).


I'm going to move this thread to the Bugs forum.