I am building an application in ExtJS and I have a form with a submit failure function as follows:
buttons:[{
text: 'Bestil',
id:'button_bestil',
width:85,
handler: function(){
create.getForm().submit({
success: function(f,a){
},
failure: function(f,a){
Ext.Msg.alert('Fejl', 'Error');
}
});
}
}]
Now I want to show the cause of the error from the fields where they are not filled correctly.
Fx I have a text box with the following:
vtypeText:'Please type in valid email',
vtype:'email'
I found out that I can use a.resultType.It returns a "client". Now, how to get the actual error message.
Hope this makes sense
/ Souni
source
share