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 / Powerapps form onsucce...
Power Apps
Answered

Powerapps form onsuccess notify message never displays

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a form with a submit button that is connected to Powerautomate. For the form OnSuccess I added the following:

Notify("Request successfully submitted",NotificationType.Success)

 

However when I hit the submit button the notification does not appear at the top of the screen. But the form submitted successfully to the SharePoint list because I received an email notification (as part of the PowerAutomate).

 

I also tried the UpdateContext Method. However, upon submit the Popup never appears.

 

My goal is to have a message (pop-up or notification) appear upon successful submission. Also a message if the form does not submit.

Categories:
I have the same question (0)
  • rsaikrishna Profile Picture
    3,703 on at

    @Anonymous 

     

    Are you calling the flow after you submit the form? Are you capturing any response from the Power Automate? If not, try to capture the response from Power Automate back into Power App such as Success or Failed. Use IF condition to check the response and if successful, call the function Notify to show the desired msg. 

     

    Another test: If you are calling Power Automate after submitting the form, try removing the Power Automate call and check OnSuccess is triggering your Notify or not. 

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

     

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    Do you by chance have

    Submit(FormName); Back()

    or

    Submit(FormName); Navigate(Screenname)

     

    This will change the users screen before the OnSuccess for the form runs.

     

    If this is the case then you should have your OnSuccess do the navigation after the notification:

    Notify("Request successfully submitted",NotificationType.Success); Back()

    or

    Notify("Request successfully submitted",NotificationType.Success); Navigate(ScreenName)

     

    Cheers,

    Sancho

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The submit button is using run(fields that match ask in powerapps for powerautomate). Then OnSuccess for the form is Notify(" Request successfully submitted",NotificationType.Success);ResetForm(Form1)

     

    I think the issue is I am using PowerAutomate to submit my form so it can do other things too like update other lists and send emails.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am using Powerautomate to submit the form. In my Powerautomate I have all of the "ask in PowerApps" for my fields. Then my submit button is connected to that Powerautomate with the run function and fields.

     

    Would I use the IF statement in the Onsuccess?

  • Verified answer
    rsaikrishna Profile Picture
    3,703 on at

    @Anonymous 

     

    As you are not submitting the form from Power App but just passing the information to Power Automate, OnSuccess method will not be fired.

     

    The only way to show Notify to the user is capturing the response from Power Automate in the Power App and calling Notify function.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Got it. I am new to PowerApps. So...how do I do this?.. "capturing the response from Power Automate in the Power App and calling Notify function" I thought I was already doing that when the users completed the form from Powerapp.

     

    I appreciate your help.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So I tried to use the respond to Powerapp or Flow function. I added a yes/no success with a true value. I was trying to follow this example https://www.linkedin.com/pulse/return-your-flow-result-powerapps-louay-karout it's exactly what I need but it is not working. Powerapps is not recognizing the syntax in completely. I'm not sure if its because the beginning syntax is to capture the input from the users in Powerapps. Once the item is created in the SharePoint list. PowerAutomate should fire off the notification inside powerapps.

     

    AR_button.Run(dc_agendatitle.Text,dc_agendadetails.Text,dc_agendaduration.Text,dc_agendaoffice.Selected.Value,If(AR_button.success,Notify({Your Request was successfully submitted},notification.type.Success),Notify({Your request failed, please try again},Error)

     

    I'm not sure I called the flow result correctly. In the syntax above I used the name of the Powerautomate (AR_button)

  • Rivius Profile Picture
    269 on at

    Try instead to update a variable with the result of the 'respond to powerapp' flow function and check that for success or failure:

     

    UpdateContext({varFlowResult: AR_button.Run(...)});
    If(
     varFlowResult = "Success",
     Notify(
     "Your request successfully submitted!",
     NotificationType.Success,
     3000
     ),
     Notify(
     "There was a problem with your submission, please try again or contact the 
     helpdesk.",
     NotificationType.Error,
     3000
     )
    );

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard