web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to set an Expiry D...
Power Pages
Answered

How to set an Expiry Date on a Webpage?

(0) ShareShare
ReportReport
Posted on by 40

It seems that Microsoft took away the automated ability for the expiry date setting in Page Settings. 

 

Does anyone know how we can achieve this functionality now? 

Objective: Shutdown the page/form at 11:59pm 

 

Manage web pages | Microsoft Learn

TA_Jeremy_0-1717529521658.png

 

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Use Liquid, couple of options depending on what you need (may need both depending)

    • Could edit the 'Header' Web Template to not populate it in the menu
    • Wrap the page content in a Liquid 'if' and check for the date, if still valid show content else show message on the screen 

    Liquid has a 'now' object to get the current date-time and the expiry field is probably still exposed on the 'page' object so could possibly still use it.

    https://learn.microsoft.com/en-us/power-pages/configure/liquid/control-flow-tags#if

    https://learn.microsoft.com/en-us/power-pages/configure/liquid/liquid-types#datetime

    https://learn.microsoft.com/en-us/power-pages/configure/liquid/liquid-filters#date-filters

  • JW-22072146-0 Profile Picture
    40 on at

    This is awesome, thanks so much! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
Valantis Profile Picture

Valantis 46

#2
11manish Profile Picture

11manish 46

Last 30 days Overall leaderboard