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 / Disable Browser back b...
Power Pages
Unanswered

Disable Browser back button in Power Pages Basic Form

(0) ShareShare
ReportReport
Posted on by

Hi Everyone, 

 

I'm new to Dynamics and was wondering if there's any way to disable the browser back button when completing a basic form in power pages? 

Categories:
I have the same question (0)
  • Akah Mandela Profile Picture
    445 on at

    To my knowledge, disabling the browser back button specifically within a Power Pages Basic Form is not directly possible.

     

    However, there are some alternative approaches you can consider like using Custom Javascript: You can add custom JavaScript to your Power Pages to manipulate browser behavior. For instance, you could use JavaScript to override the default behavior of the browser back button.

     

     <script type="text/javascript">
     // Prevent the user from navigating back
     window.history.forward();
    
     // Optional: Display a custom message when the user tries to navigate back
     function noBack() {
     window.history.forward();
     }
     </script>

     

  • InquisitiveAI Profile Picture
    on at

    @mandela thanks for responding, I guess the real issue is that I have a basic form that has a redirect to another basic form. I want to prevent users from being able to click the back button on the browser from the 2nd form since it creates a new record which causes dirty data. Ultimately, is there a way to prevent the creation of that new record when the back button is pressed on the browser? 

  • Akah Mandela Profile Picture
    445 on at

    Hi, in that case i will advice you make use of Multistep forms 

  • InquisitiveAI Profile Picture
    on at

    @mandela To add the code that you gave earlier would I have to put that into a web file or could I put that directly into the additional settings tab within the Portal Management in power pages? If its in a web file, how do you connect that web file to the form? 

  • Akah Mandela Profile Picture
    445 on at

    you will have to inject it in the page which has the form. You can use VS code 

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Multiform step here make more sense as per @mandela suggestion

    alternatively what you can do is set a status / flag to the record before redirecting to the Form 02, and within the on-load of Form 01 you check the flag and send a warning / redirect back to Form 02

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard