cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

LaunchTarget.Replace not working

Hi all,

 

I just tried to create a button to launch a web page, but I'm plan to use the new feature which is launch to the same page. 

The other day, keyword was LaunchTarget.Self now being replaced with LaunchTarget.Replace. (Is that correct )

 

So, the button is contain like this :

Launch("http://bing.com/search", {q: "Power Apps"}, LaunchTarget.Replace)

 

but it doesn;t work. Still it will open in new tab in my browser.

Anything missed ?

 

Thanks,

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@Anonymous 

OK, I just tested it out and LaunchTarget.Replace works.  You have to publish the app and test your button in the 'Play' version of the app.  It will not replace your tab if you are testing in studio... for a good reason.

 

Launch("http://bing.com/search", {q: "Power Apps"}, LaunchTarget.Replace)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

4 REPLIES 4
mdevaney
Super User
Super User

@Anonymous 

I don’t believe anything has changed.  The documentation still says you should use LaunchTarget.Self

 

Launch("http://bing.com/search", {q: "Power Apps"}, LaunchTarget.Self)


Link to MS Docs:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-param

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Anonymous
Not applicable

Hi,

 

But the suggested options also has changed to New and Replace)

WWwong_0-1599405470692.png

Thanks,

@Anonymous 

OK, I just tested it out and LaunchTarget.Replace works.  You have to publish the app and test your button in the 'Play' version of the app.  It will not replace your tab if you are testing in studio... for a good reason.

 

Launch("http://bing.com/search", {q: "Power Apps"}, LaunchTarget.Replace)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Anonymous
Not applicable

Ah ok.

 

No wonder. Thanks !

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

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.

Users online (2,190)