web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Option to Close/Exit t...
Power Apps
Unanswered

Option to Close/Exit the entire App - Possible?

(0) ShareShare
ReportReport
Posted on by 775

Hi All,

I have built the following hamburger menu. When I click on the respective option, the correct page opens, it should be like this. I have built it like this:

PowerSm_0-1652955664536.png

In the app it looks like this:

PowerSm_1-1652955942209.png


But now I want to say that when I click the last Option "Abmelden", the app should not redirect to a screen, but should close completely by itself.

How can I achieve that? Do you have any ideas?
Is there something like Exit App?

 

Thank you very much in advance!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,042 Most Valuable Professional on at

    Hi @PowerSäm ,

    You need the Exit Function

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • PowerSäm Profile Picture
    775 on at

    Hi @WarrenBelz and thank you for your quick reply.

     

    But how can I do it in my specific case? Maby like this? (See pic below)

    PowerSm_0-1652957048531.png

    It seems that something is missing. 

     

    I thank you in advance for your help.

  • WarrenBelz Profile Picture
    153,042 Most Valuable Professional on at

    @PowerSäm 

    Actually looking at it again, you cannot in that structure - it is expecting a screen

  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    @PowerSäm 

    I guess that the OnSelect formula of your gallery looks something like this:

    Navigate(ThisItem.Screen)

    You could maybe change that to the following:

    If(ThisItem.Title = "Abmelden";
     Exit();
     Navigate(ThisItem.Screen)
    )

    Alternatively, you could navigate the user to an 'Exit Confirm' screen. That screen would contain a label 'Are you sure you want to exit?', and you could add an 'OK' button that calls Exit().

  • PowerSäm Profile Picture
    775 on at

    Thank you, for your replies, @WarrenBelz & @timl.

     

    @timl, I did not put these options behind a gallery, but behind the app itself, in the OnStart function (see pic below).

    PowerSm_0-1653032868188.png

     

    So is it possible to put your IF statement somewhere there too? Or is that not possible?

     

    Otherwise I will work with the suggested workaround, the 'Exit Confirm' screen. 

     

    Thank you in advance!

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @PowerSäm 

    I can't see any way of adding a call to Exit in your existing formula so if it's workable, I think the 'Exit Confirm' screen would be the easiest option here.

  • PowerSäm Profile Picture
    775 on at

    Thanks for your quick reply, @timl .

     

    Ok, then I will use the second way to work around this issue.

    Thank you so much!

  • PowerSäm Profile Picture
    775 on at

    Thanks for your quick reply, @timl .

     

    Ok, then I will use the second way to work around this issue.

    Thank you so much!

  • Chaitanya8 Profile Picture
    2 on at

    I had a similar scenario when I wanted to close the entire tab on click of a button from powerapp. I tried using Exit() formula but it only redirects you to the other screen instead of closing it.

    You can develop a PCF component to meet that requirement. 

    Here's the link which can help you with the designing.

    https://hameedhussaincom.wordpress.com/2021/02/25/create-a-new-pcf-button-control/ 

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard