Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Button Feedback response on Submission

Hi All, 


I have a situation where i'm using the 'Button' feature of powerapps for confirmation of submission. 




Ideally, what should happen is when the user confirms that he/she wants to submit by clicking <Yes> button, that will submit the data to the repository and store it there. This is ALL good and can be achieved using the 'onSelect' property of the buton.


But what i would also like to be able to do, is to have the app informing the user if their submission is successful, or has failed. This is for the scenario that sometimes, there might be a server issue etc.. which prevents powerapps from submitting the data.


I know that there is a 'onSuccess' property for type FORMS (i'm not using FORMs in the background, but a custom screen&gallery), but i don't see that in the 'button' item. Is anyone aware of any workaround that can address this? Is there some sort of property that can be leveraged from powerapps that stores the submission status of the button when clicked?



ViStr Advocate I
Advocate I

Re: Button Feedback response on Submission

Hi warren,


as I belive, you could check is datasource countaint any submitted data or not. And if it is so set visible any message about successed submission.


For example:

Yes.OnSelect = Patch(submit data to DS);Set(SubmissionResult;CountRows(Filter(YourDS;FieldToBeVerified=NewValue)))


After click on Yes button You get count of patched records in global variable SubmissionResult. And at this stage You could set related from SubmissionResult variable Visible property of some info message. That is just an idea of workaround your scenario without using forms.

Viktor Strizhakov
Community Support
Community Support

Re: Button Feedback response on Submission

Hi @warren,


Yes there is no "OnSuccess" property could be used with the Button control, but we could take use of the Errors function to check the Record submit status.



Errors can happen when a record of a data source is changed. Many causes are possible, including network outages, inadequate permissions, and edit conflicts.

The Patch function and other data functions don't directly return errors. Instead they return the result of their operation. After a data function executes, you can use the Errors function to obtain the details of any errors. You can check for the existence of errors with the [IsEmpty] function in the formula IsEmpty( Errors ( ... ) ).


For example, to use Errors function, the following code could be used:

Patch(DataSource, EditRecord, NewRecord);

Adding the function reference:

Errors function in PowerApps




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,868)