Hi,
Im building an app in ExtJS and i have a form with a submit failure function like this:
buttons:[{
text: 'Bestil',
id:'button_bestil',
width:85,
handler: function(){
create.getForm().submit({
success: function(f,a){
//do stuff!
},
failure: function(f,a){
Ext.Msg.alert('Fejl', 'Error');
}
});
}
}]
Now what i want is to show the reason for the error from the fields that where not filled in correct.
F.x. i have a textfield with the following:
vtypeText:'Please type in valid email',
vtype:'email'
I found out that i could use a.resultType.
It returns "client". Now how do i get the actual error message.
Hope this makes sense
/Sune