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

Community site session details

Session Id : ukYGP1u/rBCWr4g/mbhVCk
Power Pages - General Discussions
Answered

Resubmission Forms when refreshing power page

Like (0) ShareShare
ReportReport
Posted on 6 Jul 2023 13:34:11 by 2,268 Super User 2025 Season 2

Hello everyone,

 

when somebody submits a form on my PowerPage everything works fine and the success message is displayed after the site refreshes.

Problem is that if somebody refreshes the site again the form is as well submitted again.

For sure Webbrowsers show you that message, but can I prohibit the resubmission somehow?

 

In my case the resubmission of an order would be a worst case scenario.

 

Lucas001_0-1688650355651.png

 

Categories:
  • NickD_MSFT Profile Picture
    Microsoft Employee on 19 Jul 2023 at 17:13:55
    Re: Resubmission Forms when refreshing power page

    This is a known issue with the preview of the enhanced data model, you'll need to configure this in the Power Pages management app for now. 

  • Lucas001 Profile Picture
    2,268 Super User 2025 Season 2 on 07 Jul 2023 at 05:30:33
    Re: Resubmission Forms when refreshing power page

    Hi @NickD_MSFT,

     

    that was my opinion as well. Unfortunately, I am using the new power pages with enhanced data model and the option redirect, or at least where it should be, is just blank. I can still select it, but no options are showing. I just get a total white modal where usually the options are.

  • NickD_MSFT Profile Picture
    Microsoft Employee on 06 Jul 2023 at 17:23:16
    Re: Resubmission Forms when refreshing power page

    Another option is to redirect to a different page or hide form once submitted. 

    https://learn.microsoft.com/power-pages/configure/basic-forms#on-success-settings

     

  • Verified answer
    Lucas001 Profile Picture
    2,268 Super User 2025 Season 2 on 06 Jul 2023 at 13:56:59
    Re: Resubmission Forms when refreshing power page

    Found it out myself:

     

    Just add the following code snippet to the js of the specific page:

     if ( window.history.replaceState ) {
     window.history.replaceState( null, null, window.location.href );
     }

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete