Top
Changing the Source URL of your Flows
  • 22 Mar 2022
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Changing the Source URL of your Flows

  • Dark
    Light
  • PDF

Whatfix offers the flexibility to re-use Flows across different domains or versions of your application. For example, you may have development and production environments, in such cases, you can change the URL or use the dynamic URL feature to ensure that your Flows work in both environments.

Editing the URL of a flow

  1. Navigate to the Whatfix Dashboard.
    Goto_dashboard

  2. Hover the cursor over the Flow you want to edit, and then click the Edit icon.
    Dashboard_listview_edit

  3. Scroll down to the end of the Flow.
    Dashboard_flow_laststep

  4. Copy-paste the URL you want the Flow to run on under the Source URL of the Flow section.
    Dashboard_flow_sourceurl

  5. Click Save
    Dashboard_flows_save


Setting a dynamic URL

While creating your FLow, all you need to do is wrap the dynamic portion of your URL with curly braces, as shown below.

Dashboard_flows_dynamicurl

Replacing the dynamic portion via script

When Whatfix Flows are used inside the application, you might already know this dynamic portion. Use the following script to inform Whatfix about the dynamic portion. By informing Whatfix about it, one can avoid asking the user to type in an already known portion of the URL.

window._wfx_settings.dynamic = window.location.host;

By using the above script in your pages, the Whatfix Self Help widget (or any other embed options) will replace the dynamic portion in the URL with the current page host.

If you have multiple dynamic portions in the URL, separate them with a comma.

Note

Whatfix business users can place this script in their admin/integration section. Users of the application are not required to change anything or manually provide the web address. Whatfix picks the current URL automatically.


Was This Article Helpful?

First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.