SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I add infoPath from Infopath Designer its blocked me all the Modal Dialog fired from Event Receiver. I want to edit InfoPath form to don't block My Sharepoint Modal Dialog. Now no one dialog boxed fired from Event Receiver. If I have got a Defoult form without InfoPath, the dialog boxes are firing when it's catch a Error.

Here Is my code of setting Dialog Boxes in Event Receiver:

          if (dzienStart > dzienStop)
               properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;
               properties.RedirectUrl = "/_layouts/Add4/OutOfRange.aspx";
               properties.ErrorMessage = "You cannot save this list item at this time";


Now after error raises it's clearing me Infopath form, and no dialog shown.

share|improve this question
Why I cant stop after sending data and rises the error from Event Receiver – Grzegorz Z Dec 27 '12 at 15:13

I believe I answered this your question in my replies to your questions:

In other words, if you do not want to create-maintain your own alternatives to Sharepoint and Infopath and/or to hack-override-subvert their intended usage with all consequences of development&maintenance horrors, you should first acquaint yourself with their principles and follow them instead of trying to insistingly trying to hack and subvert them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.