ты такое хотел:
Ext.onReady(
function(){
var simple = new Ext.FormPanel({
frame:true,
monitorValid: true,
title: 'Simple Form',
width: 350,
defaults: {width: 230},
defaultType: 'textfield',
listeners: {
clientvalidation : function(form, valid) {
if(form.getForm().isDirty())
{console.log("yes")}
}
},
items: [{
fieldLabel: 'First Name',
name: 'first',
allowBlank:false
}],
buttons: [{
text: 'Save'
},{
text: 'Cancel'
}]
});
simple.render(document.body);
})