Dear all:
With my FormPanel, I've noticed that setting allowblanks as a default overrides the settings given to the items in the form, so that, even if allowblanks is specifically set for the items, that behavior gets overridden, leading to validation problems. I've pasted some code below, and hope someone here has some thoughts on this.
var fields = [
// email
{
fieldLabel: 'Manager Email(s)',
id: 'email',
value: om['email']
},
// rationale
new Ext.form.TextArea({
allowBlank: true,
fieldLabel: 'Rationale',
height: 48,
id: 'rationale' Ext: Bugs [Archive] - Page 4 - Ext JS Forums:: FormPanel.getForm().setValues [2.0.1][FIXED] ComboBox, allowBlank: false, msgTarget: side [CLOSED] Combobox unexpected behavior: TAB always forces http://extjs.com/forum/archive/index.php/f-20-p-4.htmlHOME |
}),
// justification
new Ext.form.TextArea({
allowBlank: true,
fieldLabel: 'Justification',
height: 48,
id: 'justification',
width: '99%'
})
];
var form = new Ext.FormPanel({
bodyStyle:'padding: 5px 5px 0',
buttons: [
{
text: 'Send Request',
handler: createRequest
},{
text: 'Cancel',
handler: function(){
ContractRequest.window.destroy();
}
}
],
defaults: {
allowBlank: false,
width: '98%'
},
defaultType: 'textfield',
items: fields
});
Thanks,
Josh
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|