View Full Version : Determine Success when calling Form Submit?

16 Jan 2012, 1:25 AM
Hi Guys

I have a Popup window containing a form which submits data back via a Direct Store, now the form works fine and data is sent back to the server.. but how do I determine if the submit was success? I just want to hide the window on success :)

Basically I have a handler in my MVC Controller that fires when it receives the "Save" action, this then calls Form.submit(), at this point I would have expected submit() to return TRUE or FALSE, so I can determine what to do next... but that is not the case, it just returns undefined.

Any help or advise would be greatly appreciated.


16 Jan 2012, 1:39 AM
I should know this by now.. when in doubt check the documentation!

This worked for me

success: function(form, action) {