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 / ConfirmExit cannot ref...
Power Apps
Unanswered

ConfirmExit cannot reference controls anymore?

(2) ShareShare
ReportReport
Posted on by 635

Hello

Please be so kind as to read my full post before responding.
Thank you for your consideration.

In one PowerApp I wanted to have the user confirm exit, only if there were unsaved changes.
I already had set up a Cancel Button with Visible property set to true only if there were unsaved changes.
I cannot use Form.Unsaved because of custom DataCards which which don't have an Update property to track.
Thus, I had ConfirmExit reference this Cancel Button.Visible similar to the example in the documentation:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/object-app#confirmexit
image.png
In my App I am just using a Button.Visible property instead of Form.Unsaved.

This was working as least in PowerApps Release 3.19075.21.
I have a published version of my App from that release which is working in browser and mobile PowerApps App.

I just tried continuing work on this PowerApp (with Studio in current, at the time of writing, release 3.19091.18), but my formula for ConfirmExit isn't accepted anymore.
Form.Unsaved is still accepted but is not useful for me in my PowerApp because I have a lot of custom DataCards without Update property.
image.png
The App checker says
image.png
The reference link points to the link given above.
image.png
I could not find a "list of supported control properties".

My questions

  1. How do I get it working again (in a reasonable way)?
    I guess I could work around this thing by using some sort of unsaved global variable in all OnChange events but I really don't want to do that.
  2. There been a change to the scoping or acceptance of Controls/Properties in ConfirmExit right?
  3. Is there any relation to that strange DelayedLoad warning in the documentation?
    image.pngimage.png
    DelayedLoad is still on in my advanced App settings.
  4. Where is the supposed "list of supported control properties"?

Tested with:
Session ID: be82a86c-3d08-4dfd-b189-e870148cce60
PowerApps 3.19091.18

Thank you,
    Sa Wu.

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @SaWu 

     

    I have made a test on my side, and find the same issue you mentioned.

    Button.Visible cannot be referenced in ConfirmExit even though it is boolean value,  so strange!

    I haven't found any blogs describing the change of ConfirmExit, and I'll go to check if this is an update bug. Until then, I afraid that the only way is to use a global varible to pass boolean value to ConfirmExit. 

     

    Best regards,

    Sik

  • james_hathaway Profile Picture
    427 on at

    I have experienced the same problem - including the complete absence of documentation that you also mentioned!

     

    It's also worth stating that I am writing this reply OVER A YEAR after the original post, and there has been no response from Microsoft, and the documentation has not been updated.

     

    Can somebody from Microsoft please respond?

    Is it the Documentation that is wrong, or is it a BUG in the platform?

     

    James.

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard