cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Surya_PH
Advocate II
Advocate II

Exit() - Close Tab - Redirects to dynamics

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.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Surya_PH ,

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,

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

View solution in original post

14 REPLIES 14
mdevaney
Super User
Super User

@Surya_PH 

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-s...

 

---
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."

v-xida-msft
Community Support
Community Support

Hi @Surya_PH ,

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,

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

View solution in original post

rrranta
Advocate II
Advocate II

Hey @Surya_PH 

 

I'm dreaming of the same function 🙂

 

If you every figure it out lmk for old time's sake

Test22
New Member

@Surya_PH @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/

Maarten_Docter
Regular Visitor

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.

ron_zw
New Member

Hi @Surya_PH 

 

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 😕

Any ideas?

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?

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,909)