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 error Hand...
Power Apps
Answered

Submit form error Handling

(0) ShareShare
ReportReport
Posted on by 46

Hello all,

 

I am creating records using submit form. when there is an error on creation .error is throwing as notification type error

 

NEED:

I am capturing the errors in local buffer and i am displaying it in separate screen

i need to hide the notification when the error occurs on creating record

 

Is there any way to hide the error notifications in submit form

 

Thanks in advance.

Categories:
  • eka24 Profile Picture
    20,925 on at

    Please what is the error and why do you want to hide it

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Hasini Profile Picture
    46 on at

    Hi @eka24 

     

    I am using Powerapps with D365FO

    When i submit a form it will create record through D365FO ,Error will be thrown from D365FO implementation

     

    I need to show the error in separate screen i have done this using form.error

     

    I dont want to display the same error as notification.by default when there is an error in submit form it displays the error as notification.

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Hasini ,

    Do you want to hide the error notification generated by system like this?

    495.PNG

     

    If so, I suggest you try IfError function.

    The syntax of this function is:

    IfErrorValue1Fallback1 [, Value2Fallback2, ... [, DefaultResult ] ] )

    You could use the update formula as the first parameter to test error. But to use this function, you need the second parameter as Fallback.

    If you only want to display nothing when meeting errors, try this formula to update your data source.

    IfError(
    SubmitForm(Form2),"")
    //SubmitForm(Form2) is my formula to update my formula, you could replace with your formula to update data source

    Then, if you have no error, you will update record. If you have error, you will have no error message and not update record successfully.

    Here's a doc about this function for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-iferror

     

     

    Best regards,

  • Hasini Profile Picture
    46 on at

    Hi @v-yutliu-msft ,

     

    I have used the below formula for creating the record for error handling

     

    IfError(SubmitForm(EditForm3),Navigate(ErrorScreen,ScreenTransition.None,{locErrorMessages: EditForm3.Error}))

     

    But i am getting the error message as notification and it is not navigating to the error screen

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Hasini ,

    1/To use IfError function, firstly you need to turn on this setting:

    410.PNG

     

    2/I found that no matter you use what formula in the second parameter, it will show a notification.

    But you could use Notify function to change the error message to other words in this error notification.

    Try this:

    IfError(SubmitForm(EditForm3),
    Notify("You failed to submit the form");Navigate(ErrorScreen,ScreenTransition.None,{locErrorMessages: EditForm3.Error})
     )

    Then the error notification will change to "You failed to submit the form" and you will navigate to errorscreen.

    About totally hide the error notification, I'm afraid it's not supported now in powerapps. I suggest you post your idea here:

    https://powerusers.microsoft.com/t5/Ideas/ct-p/PA_Comm_Ideas

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    why would anyone mark this as a solution?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard