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 Apps / Submit Form, Set pop u...
Power Apps
Unanswered

Submit Form, Set pop up page with Success message

(0) ShareShare
ReportReport
Posted on by 43

I am trying to submit a form, after all the required fields are filled and once that is submitted a message pop up will display confirming the submission. Code is as below, unfortunately once I submit the item, the pop up is displayed for a millisecond and then it takes me back to the Main Page. 

 

I don't want to be taken to any page, just show the pop up for a longer time, give the user enough time to read the message on the pop up and then they can select a button on the pop up that takes them to the main page.

 

If(EditForm1.Valid, Set(SuccessPop,1); SubmitForm(EditForm1),
Notify("Please enter the Required Fields",NotificationType.Error))

 

 Is there anything I am doing wrong?

 

micha_a_0-1671041457345.png

 

Categories:
  • cha_cha Profile Picture
    4,932 Moderator on at

    Where do you use the SuccessPop variable? How is it related to the Pop up message?

  • micha_a Profile Picture
    43 on at

    micha_a_0-1671041832087.png

    Pop up page is just a group I created on the same screen to be displayed once an item is submitted successfully, meaning that it is only displayed if the form is submitted correctly with all the required fields populated. Let me know if this makes sense

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    First, put your code inside a Container instead of a Group cause it's easier to control them.

     

    Second, add that code:

    If(EditForm1.Valid, Set(SuccessPop,1); Set(showMessage,true); SubmitForm(EditForm1),
    Notify("Please enter the Required Fields",NotificationType.Error))

     

    Then back to your container, set it's visible property to showMessage.

     

    On the X icon of your message, set its OnSelect property to Set(showMessage,false);

     

  • micha_a Profile Picture
    43 on at

    Thank you for your reply. I just did this and it's behaving the same way as it did when I was having them under a Group. So once I submit an item the message is shown for a millisecond and it takes me to the Main Screen. If I am trying to add a new item all over again from scratch, all the fields in my Form are already prepopulated with records existing in my SP list and the Container is visible now, even though I have not clicked on Submit Button 

     

    micha_a_0-1671043534237.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard