How can we help you today?

Show Only Events for Next N Days from SharePoint Calendar


If you want to show only events for the next N days in Events or DatesList ShortPoint design elements, there are two ways you can do this.

  • Option 1: Set the Days Limit in the ShortPoint Connect tab
  • Option 2: Create a new view in your SharePoint list


We will provide steps for both options in this article.


Option 1: Set the Days Limit in the ShortPoint Connect tab


Step 1: Insert a ShortPoint design element

Edit your SharePoint page, insert a ShortPoint web part, and select a design element from Page Builder. In our example, we are using the Events design element.



Step 2: Choose a Connection Type

Choose the Connection Type according to the location of the SharePoint Calendar you want to use. Here, our calendar is in the current site collection.



Step 3: Select SharePoint Calendar from the List/Library field

On the List/library field, select the specific calendar you want to pull data from on the dropdown.



Step 3: Set the number of days to display

The Days limit field in the Connect tab is where you will be able to set the next N number of days you want to display on your SharePoint page from your calendar.



Step 4: Connect and map items to display

Hit the Connect button and once connected, proceed to the Items tab. Map the information you want to display on your page.


Note: For more information about ShortPoint Connect and items mapping, please refer to our article ShortPoint Connect: Basic Tutorial.



Step 5: Insert and save design element

Click Insert to complete the step in adding the design element and hit Save.



Your inserted Events design element will now show only content from your calendar in the designated number of days you set.



Option 2: Create a new view in your SharePoint list

You can also set the number of days to display from your SharePoint calendar list view. When you connect this in a ShortPoint design element, it will only pick up the content that is filtered in the view.


Step 1: Create a new view

Go the Events page and on the Ribbon tab "Calendar" click "Create View" button.


OKTg_33R6Km_7hLX9qEKf_Eaz-LomgntOQ.png



Choose "All Events" from the "Start from an existing view" section


60e-1NqYgw0uVve55Y-lw7ys6oNmz9HacQ.png

Step 2: Customize view

First, specify some view name (e.g. next-5-days):


Pq6vQe2XREUzHsHxRzAoIyzMYlSFi1RAuQ.png

Then scroll to the filtersection and enable them:


ZVBwcVoZboG-VZzDO0EeYu1WJKdFSHM0Ww.png


Add filter criteria:

  • Use "Start Time" field and add criteria is greater than or equal to using special value: "[Today]"
  • Use "And" condition to add one more condition
  •  Use "Start Time" field and add criteria is less than or equal to using value: "[Today] + 5"

Check the picture below:

NeCoMcnQkeIpIMDJmZhEZazuy-GlFcLusg.png

Save view by clicking "OK" at the end of the Create View page.


Step 3: Connect ShortPoint to newly created view

Use View dropdown on the Connect Tab in Inserter:


k8sEE8dceatjnILfB-nop5iJ7-3HFLPzig.png


 

That's it, now your ShortPoint will show events only for the next 5 days.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 69 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more