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
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