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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,034)