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 / Bug Report: Form Submi...
Power Pages
Unanswered

Bug Report: Form Submission Issue on Page Refresh in Power Pages

(0) ShareShare
ReportReport
Posted on by
Hi everyone,
 
I encountered an issue in Microsoft Power Pages where refreshing the page after submitting a form results in duplicate records being created.

Steps to Reproduce:

  1. Create a Form in Power Pages to create a new record in the Dataverse.
  2. Configure the post-submit action to display a success message after the record is created.
  3. Submit the form to create a new record. The success message will be displayed as expected.
  4. Press F5 to refresh the page.
  5. The system will display a prompt warning that refreshing the page will re-submit the form.
  6. Click OK to proceed with the refresh.

Expected Result:
The page should refresh without any warning. 

Actual Result:
After refreshing the page and clicking OK on the prompt, the form is re-submitted, resulting in a duplicate record being created in the database.

Categories:
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    1. Use Redirect After Form Submission
    In Power Pages, configure your form's post-submit action to redirect to another page after the submission is successful.
    You can do this by setting the Redirect URL in the form settings, which will take the user to a different page (such as a thank-you page) after submitting the form.
    After the form is submitted, use JavaScript to reset the form, so that when the page is refreshed, the form data is not re-submitted.
    $(document).ready(function () {
        $('#formId').on('submit', function () {
            // Your form submission logic here
            
            // Reset the form after submission to avoid resubmission
            $(this).trigger('reset');
        });
    });

    Use JavaScript to Prevent Duplicate Submissions
    $(document).ready(function () {
        $('#formId').on('submit', function (e) {
            e.preventDefault();
            // Disable the submit button to prevent further submissions
            $('#submitButtonId').prop('disabled', true);
            
            // Your form submission logic here
            // Optionally, use an AJAX request to submit the form without triggering a page reload
        });
    });

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
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard