PDA

View Full Version : IsValid : Ext 1.0 vs Ext 1.0.1a



ashish
4 Jun 2007, 7:18 PM
I have defined a text field as follows :


var fldLogin_ID_Requester = new Ext.form.TextField({
fieldLabel: 'Requester ID',
name: 'Login_ID_Requester',
width:250,
allowBlank: false,
blankText: 'Please select the ID.',
disabled: true
})

The field is disabled as the data is populated using a button provided next to it.
The submit button has a validation function which checks if this field is valid i.e.

if ( fldLogin_ID_Requester.isValid() ) {
document.forms[0].submit();
}

In Ext 1.0, the validation event works perfectly as the field is marked as invalid if blank (underlined using red color)
However, in Ext 1.0.1a this does not seem to work i.e. blank field value should mark it as invalid but it doesn't

Has anyone faced this issue?

Regards,
Ashish

jack.slocum
5 Jun 2007, 1:25 AM
That was a bug in Ext 1.0. That bug has been "fixed" and disabled fields are no longer validated as they are never submitted to the server.

ashish
5 Jun 2007, 3:41 AM
That was a bug in Ext 1.0. That bug has been "fixed" and disabled fields are no longer validated as they are never submitted to the server.

lol! I thought that was a cool feature :D
Thanks!