View Full Version : Form field validation Msg.alert problem

30 Jun 2011, 3:41 PM
I have a MVC setup and I have field validation in the model (modeled after http://www.sencha.com/forum/showthread.php?112719-Best-practice-for-form-validation). I then prompt the user with an error message if the validation fails.

All the validation works correctly. My issue is that sometimes the messagebox will pop up over everything - other times one of the form fields will be in front of the messagebox. Seems like the z-index is somehow off??

I've tired disabling the fields and form before the validation, moving focus, etc. - I'm at the bitter end of this. Any insight would be very helpful.


var errors = snipe.validate();
if (!errors.isValid()) {
Ext.Msg.alert('', errors.first().message);
return false;