How to Make a Custom Button Redirect to a Page

Custom buttons in WS Form can be configured to do anything you wish using conditional logic.

Demo

Tutorial

In this tutorial we’ll configure a custom button to redirect to another page when it is clicked.

  1. Add the Custom Button to the form.
WS Form PRO - Custom Button - Redirect - Add Button
  1. Click the Conditional Logic icon at the top of the layout editor. The Conditional Logic sidebar will open.
  2. Click the Add  icon to add a new condition.
  3. Give the condition a name, e.g. ‘Button Click’
  4. Configure the condition as follows:
    1. IF [Button] [Clicked]
    2. THEN [Form] [Run JavaScript]
    WS Form PRO - Custom Button - Redirect - Conditional Logic
  5. In the JavaScript code editor, enter: Change the web address to whichever URL you want the button to redirect to.
location.href='https://wsform.com';
  1. Click Save & Close
  2. Preview the form to test your button.