Use an InfoPath form to add a recurring all day event to a SharePoint calendar

In this InfoPath demo video you will see how you can use an InfoPath form to submit and add a normal event, an all-day event, a recurring event, and a recurring all-day event to a SharePoint 2010 calendar.

In recipe 97 you will learn how to write C# code in InfoPath 2010 that can add several types of events including all-day and recurring events to a SharePoint 2010 calendar.

Here I'm in SharePoint 2010 and I've already published an InfoPath form template to this CalendarEventsLib SharePoint form library. The InfoPath form will be used to add events to this calendar, which is located on the same SharePoint site.

First I'll add a normal event to the calendar. I'll have the event start on the 21st and end on the 21st between 2 p.m. and 3 p.m., and I'll hit Submit.

Once the form has been submitted, I'll switch to the calendar and hit refresh. And as you can see, our normal event has been added here to the calendar.

Now I'll add an all-day event to the calendar. And I'll have this event take place on the 22nd . Then I'll select this check box and hit Submit.

Once the form has been submitted, I'll switch again to the calendar and hit refresh. And as you can see, our all-day event has been added here to the calendar.

Now I'll add an event that repeats every week. I'll call it "Normal Weekly Event". And I'll have it run between the 12th of December and the 2nd of January. The event itself runs between 1:30 and 2:30 on the day. I'll have it repeat 4 times and I want it repeat every week, so every 7 days. So then I'll hit Submit.

And then again, I'll switch to the calendar and hit refresh. And as you can see, we've got three instances here in December, and one instance here in January. If I open it, you can see that it runs between 1:30 and 2:30 every 7 days.

As last I'll add an all-day event that repeats. I'll have this one run between the 15th and the 22nd . I'll select this check box, and I'll repeat it 4 times, every other day, so every 2 days. Then I'll hit Submit.

And then again I'll switch and go to the calendar and hit refresh. And as you can see, we've got one, two, three, four instances of our all-day event that repeats. And you can see here it's an all-day event and it repeats every 2 days.

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced
in any way without an expressed written consent. The techniques
demonstrated in this article may be used within any Microsoft InfoPath project.
This article is provided without any warranties. Copyright for this article is
non-transferrable and remains with the author.