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

6 REPLIES 6
mdevaney
Super User III
Super User III

@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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (35,220)