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

I tried to add Infopath form on my project, but when I add the Infopath form some of PopUp which are corelated with Infopath and shows errors od data didn't shown What should I do to shown A Modal Popup after used a Infopath form ? Please help.

I putts this code, and nothing shown When Infopath template is included. If its included defoultTemplate Sharepoint all templates are shown:

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

I cannot grasp what you are asking and in which context ("putts this code") but I shall try to make some comments:

  • Infopath code-behind is client-side code and your code is server-side
  • Published to Sharepoint Infopath form templates are available for use through IPFS - Sharepoint Server Infopath Form Service as an Infopath Web Part in ASPX Infopath Web Part pages;
  • IPFS is available only on enterpse Sharepoint Server or enterprises Sharepoint online (Office 365) plans (but NOT through free Sharepoint Foundation)
  • In order to use both default sharepoint form templates and Infopath from templates in dialog/popups, you should tweak and work around a little
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.