I want to redirect someone after they completed a workflow action to a URL that is returned from a previous workflow step. How do I do it?
Example:
Trigger: User clicks on a button.
Workflow action step 1: Change something in Xano, it returns back an external website’s URL
Workflow action step 2 (HOW?): I want the user to be redirected to this external URL that has been returned from step 1.
How to do this? I tried to save the URL from action step 1 into a variable and binding the variable to the button’s link, but it doesn’t work because when I click on the button, the workflow has not been triggered yet, so the URL from step 1 has not been saved to the variable yet, and I go nowhere.
Hi,
when you are defining a workflow action, you have access to previous actions results in the explorer (no need to create a variable)
Then you have access to a Change Page action.
setting the value window.location.href tells the browser to change pages. This is not the only way to navigate, but it’s very flexible: should take you anywhere you want to go!