How do I open another retool page after running a query?

I have a form which when submitted makes an http request to an API endpoint. Now I need to open another retool page on success of the query that makes the request.
Please, how do I accomplish this?

Hi! You probably want this query to trigger a new JS query. In the JS query, you can get it to open a URL: Let me know if this makes sense? Thanks!

Thank you very much for the reply. The problem with this approach was that on change of the targeted retool page to be opened (Example, edit page name), the url becomes invalid

And also, how do I open a new url from a JS query please? window.location.href = doesn’t seem to work.

Any luck figuring this out? I tried“”, “_blank”)
but received a js error:

Blocked opening ‘’ in a new window because the request was made in a sandboxed frame whose ‘allow-popups’ permission is not set.

Found the solution in this thread. Redirect parent window from Retool
utils.openUrl() function

Hey @ishields - you're getting that error because we sandbox JS in Retool. Was going to direct you to the utils.openUrl() function but looks like you found it :slight_smile: