cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rohinMVP
Resolver I
Resolver I

Navigate to a URL from Powerapps

I have some customized list forms.

 

Is there any new method to navigate to a URL on success of the form?

10 REPLIES 10
Gorilla_8
Super User
Super User

hi @rohinMVP 

 

Use the function Launch("siteurl") on your succes form or on your save button


Launch( "https://bing.com" )
rohinMVP
Resolver I
Resolver I

Ji @Gorilla_8

 

I tried launch, but it is opening the specified url in a new tab, whereas I want to open it in the same tab.

 

Not sure if it was because of the resetform and other methods I have along with launch. 

 

Gorilla_8
Super User
Super User

In that case use you have to close the application and after use launch

To close a running app with a button simply put the following function in the OnSelect of a button:

 

Exit()

This will close the app on desktop or mobile. Also it only works in published version of the app (you will not be able to use this button while in editor in preview mode)

Exit() is not working for me.

 

As I have originally mentioned, my power app is a customized list form. When the form is submitted, the user is taken to the concerned list.

 

I want to modify the form such that if the form is accessed via newform.aspx or editform.aspx, the user should be taken to the homepage instead of the concerned list.

Try:      Launch( "https://bing.com", Replace)

 

The Target location using replace to open the link is in preview.  (I don't think Replace needs to be in quotes)  The default is New.

 

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

 

-Art

Nixar
Regular Visitor

For me this is working 

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

Gorilla_8
Super User
Super User

@Nixar 

 

How I open a link with "{q: ""}" ?

that´s the Solution !! Thanks !!

dynamicsgirl
Frequent Visitor

For anyone who still needs a solution, here's a short video showing how to navigate to a URL, staying in the same tab (and also showing the option to open a new tab): https://youtu.be/H8_jqTsC2iY

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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