cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cooltechie
Level: Powered On

Launch Function opening in new tab

I tried the following:

SubmitForm(SharePointForm1); Launch(Concatenate("https://mycompany.sharepoint.com/sites/testsite/testsubsite/SitePages/Home.aspx?","target=%22_about%..."))

 

However, the webpage opens in a seperate browser tab as opposed to opening in the same window. How can i fix this?

 

Please advise,

 

4 REPLIES 4
TopShelf-MSFT
Level 10

Re: Launch Function opening in new tab

Hi @cooltechie thank you for posting this question. While the thread below was asking for the opposite of your request, I think the answer from our Community Support Team will be helpful. Please review and let me know if this helps. 

 

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Launch-URL-in-new-browser-window-popup/...

 

@TopShelf-MSFT

AdminHiram
Level: Power Up

Re: Launch Function opening in new tab

why can't you just post the solution, not all of these links work!

cooltechie
Level: Powered On

Re: Launch Function opening in new tab

I think this was my solution

Highlighted
TopShelf-MSFT
Level 10

Re: Launch Function opening in new tab

I had a very odd situation testing your issue. 

 

I thought that I can reproduce this issue on the very first time. When using a formula like:

 

Launch("https://google.com")

 

The browser would open a new window.

 

But with a formula similar like yours, for the first and second time I click on the button, a window pop out and ask me if I want to leave the current window, and a smaller window on the buttom asking if I want to allow this window. I click on "Always allow", and back to edit mode in PowerApps. Then I try to play this app again, and select the same button, it will directly open a new window without any warning.

 

Here is the formula I used:

 

Launch(Concatenate("https://nam.delve.office.com/",LookUp(Table1,Rating="2",Resolved),"=work"))

Capture.PNG

 

 

Notice that in Concatenate function, the formula should be:

Concatenate( String1 , String2, ... )

You do not need to use "&" operator. So your formula should be:

Launch(Concatenate("https://www.mysite.com/view_account_.aspx?accountId=",LookUp(Table1, Account = AccountSearch.Selected.Account, 'Account ID'), "target=%22_blank%22"))

 

Also, please add a Label control and set its Text property to:

Concatenate("https://www.mysite.com/view_account_.aspx?accountId=",LookUp(Table1, Account = AccountSearch.Selected.Account, 'Account ID'), "target=%22_blank%22")

To make sure that in this label, the URL is exactly the right one.

 

@TopShelf-MSFT 

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,647)