Skip to main content

How to hide SharePoint Announcements past the expiration date

One of the out of the box web parts that is a great addition to any Intranet homepage is the Announcements Web Part. It allows to easily create short notices and company announcements and makes the content of Intranet Homepage more dynamic and fresh. Each of the announcements contains a brief headline, as well as short description of the announcement. In this blog post, I would like to explain how you can automatically hide expired announcements from the list, thus keeping the content of you Intranet less cluttered and fresh. Please note that the Announcements web part is a classical web part and can only be used on Wiki Pages, not the Modern pages.

By default, there is an expired date field that the user can enter when creating announcements. It is optional.

announcements1

However, just by populating one, won’t hide the announcements from the list past the expiration date. In the example below, I have two announcements in a list and while one has an expiration date in the past – it is still displayed on a page.

announcements2

There are two options for you to hide the announcement past the expiration date.

Option 1: Use built-in Summary View

  1. Edit the Page where the announcement is embedded
  2. Edit the web partannouncements3
  3. Under Selected View, choose Summary View. Then click OK.announcements4
  4. Make sure to Save the page as well when you exit from editing
  5. You will now get a view on the page that only displays non-expired announcements. That said, it does change the look and feel of how announcements are displayed as well, by incorporating the headline as well as the body of the announcement right into the page. It might not be a bad thing, as it gives the user all the information without requiring them to click through.announcements5

Option 2: Create a filtered view

  1. If you want to stick with the regular list (headline-only) view, you need to create a manual view that would filter out all expired events. To do that, create a new view. You might make it a default view while you are here as well. Just check off “Make this the default view” box.announcements6
  2. Scroll down to the Filter section. Click the Show items only when the following is true: radio button. The choose Expires column is greater than or equal to and type [Today] in the text field. Essentially, we are asking SharePoint to only display events that have the expiration date either today or in the future.announcements7
  3. Click OK at the bottom of the screen to create a view.
  4. You will now get a view that hides expired eventsannouncements8
  5. If you want to make sure your homepage displays the new view, edit the page, then edit the web part and choose the new view you created. Click OK.announcements9

You may also like

2 ways to add a Border around Web Parts

October 12th, 2017

You may also like

How to create Help Desk Solution in SharePoint out of the box

September 21st, 2017

You may also like

SharePoint Web Part ideas for your SharePoint Team Site

February 2nd, 2017

Need SharePoint Help?

Hourly consulting, training and configuration services are available

Learn More