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 / Function to close tab ...
Power Apps
Unanswered

Function to close tab onselect in powerapps

(1) ShareShare
ReportReport
Posted on by 37

Hi,

I need to build a button on my powerapp so that the user can click and close the tab, can you please advise how i can acheive this?

 

Thanks,

Thilina.

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @thilla99 

    In the OnSelect property: Set(var, false) and in the Visible property: var

  • WarrenBelz Profile Picture
    156,736 Most Valuable Professional on at

    Hi @thilla99 ,

    If you mean close Power Apps, use 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

  • thilla99 Profile Picture
    37 on at

    Thanks, setting "visible" to var hides the button, any ideas?

  • thilla99 Profile Picture
    37 on at

    @WarrenBelz not close app, close the browser tab?

  • WarrenBelz Profile Picture
    156,736 Most Valuable Professional on at

    @thilla99 ,

    What is the difference - the app is running on the browser tab . . .

  • thilla99 Profile Picture
    37 on at

    @WarrenBelz it's a business requirement that user closes the tab after submitting the form.

  • WarrenBelz Profile Picture
    156,736 Most Valuable Professional on at

    @thilla99 ,

    Are you saying that closing the app is not enough - you also want to close the tab it is running in? If so, it cannot be done from Power Apps.

     

    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

  • thilla99 Profile Picture
    37 on at

    Correct, ok I assumed that would be the case. Thanks.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard