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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Help Needed: Implement...
Power Pages
Suggested Answer

Help Needed: Implementing session timeout for multi-step form power pages

(0) ShareShare
ReportReport
Posted on by 6

We have a multi step form on an anonymous page, and typically Power Pages multi-step forms save progress automatically.

However, in our case, the form is quite lengthy and has several steps. We need to implement a requirement where, if an anonymous user does not complete the form within '5' hours, the form should reset (i.e essentially renewing the session).

There we have a button at the top that allows users to exit the form without saving their progress.

This implementation is necessary, the devices used to fill out the form may be shared among multiple users for instance.

Please help

Categories:
I have the same question (7)
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,384 Most Valuable Professional on at
    The way I would do this is applying a JS to control the session "timeout", basically redirecting them to the home page or something, and they wouldn't be able to resume their application.
     
    Also, in the multistep form configuration you should have the Start new session on load set to Yes
  • Suggested answer
    Fubar Profile Picture
    8,455 Super User 2025 Season 2 on at
    I had to do something similar about a year ago and ended up doing the main bit in JavaScript using setTimeout. Clearing the timeout and then restarting it when there was mouse movement (and mousedown & mouseclick for touch screens), key presses, scroll. 
     
    Before you redirect them after the timeout period also remove the #mainContent node before doing the redirect, this will stop any dirty fields from raising "do you want to save your changes" type messages.
     
    Also, remember that you may need to run a process (flow/workflow/plugin) on the Dataverse side of things, because you are using a multistep form you will have a record created once they move to the second step - and so depending on your scenario you may need to remove those records. 
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 63 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 25 Super User 2025 Season 2

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 16 Most Valuable Professional

Last 30 days Overall leaderboard