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 Default form without InfoPath, the dialog boxes are firing when it's caught an 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";
return;
}
Now after error raises it's clearing me Infopath form, and no dialog shown.