Try our conversational search powered by Generative AI!

Stop a XForms post in MVC?



I am trying to do some serverside validation with the data sent with a XForm on a MVC solution and if the validation fails I want to stop the post.

I got a small problem with XFormActionHelper.BeforeSubmitPostedData. I am able to catch the Xform post before the actuall post but I am not able to stop the post with the

XFormDataEventArgs CancelSubmit.

What is the correct way to handle this?

Many thanks!

/ Henrik

Feb 03, 2015 11:47

Hi Henrik,

I've wrote a blog post of xForms validation with Google reCAPTCHA maybe te code in my blog can help you.



Feb 03, 2015 12:48

Posted wrong link, I created two blog post one for webforms and one for MVC:

Feb 03, 2015 13:22

Thanks Patrick! Youre blog post pointed me in the right direction.

Feb 05, 2015 9:10
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.