Notifications
Announcements
The exit function with boolean parameters works fine.
But is there a way where Exit() can close the tab.
Right now it redirects to home.dynamics.com
Any ideas?
Thanks,
S.
@Anonymous
This feature does not currently exist in PowerApps.
I would suggest voting for the Idea here https://powerusers.microsoft.com/t5/PowerApps-Ideas/Closing-the-browser-tab-when-form-is-submitted-saved/idi-p/181759
---Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."
Hi @Anonymous ,
Do you want to close Browser tab when you execute the Exit() formula?
If you want to close Browser tab when you execute the Exit() formula, I afraid that there is no way to achieve your needs in PowerApps currently.
The Exit() function is used to exit current running app, the user is returned to the list of apps, where they can select another app to open.
If you would like this feature to be added in PowerApps, please consider submit an idea to PowerApps Ideas Forum:
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas
Best regards,
Hey @Anonymous
I'm dreaming of the same function 🙂
If you every figure it out lmk for old time's sake
@Anonymous @mdevaney
You can close the canvas app, albeit a different way. I published an article on this, check this out:
https://hameedhussain.com/2021/03/01/close-canvas-app-using-pcf-button/
A workaround would be to redirect the page to a simple externally hosted HTML file which calls/triggers the window.close() JavaScript method to close the tab. It's easy to create.
So easy, that I even provide one which you can use in the meantime:
Launch("https://power-app-close-tab-by-maarten-docter.vercel.app", Blank(), LaunchTarget.Replace)
The LaunchTarget.Replace will open the URL in the current window, so a redirect will take place. As soon as the URL is loaded, it will close the tab.
Hi @Anonymous
Exit(false) didn't really work for me. But this work for me.
Launch('https://your.redirect.link", Blank(), LaunchTarget.Replace)
Regards
Ron
@Maarten_Docter this doesn't seem to work for me 😞
While editing the app, the close button opens and closes a new window, but when published, it opens a blank page. I tried your URL and my URL. When I open the URL in a new window, it works. It doesn't work in the same window 😕
Hi @GrischkePro, I'm on a holiday, so can't test right now. Maybe there was a change in the runtime? Next week, when I'm back online, I'll make a small proof of concept app to validate it's old behavior. Sorry I can't help you sooner.
@mdocter
Hey, did you manage to have a look at this for me?
Hi@GrischkePro , I totally forgot. Sorry for that. I still need to create the PoC and make it available for download. I noticed that the app I created it for still works. So it's old behavior should be the same. I hope to find some time this weekend. @
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268