How to Make a Custom Button Redirect to a PagePRO

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
  2. Click the Conditional Logic icon at the top of the layout editor. The Conditional Logic sidebar will open.
  3. Click the Add  icon to add a new condition.
  4. Give the condition a name, e.g. ‘Button Click’
  5. Configure the condition as follows:
    1. IF [Button] [Clicked]
    2. THEN [Form] [Run JavaScript]WS Form PRO - Custom Button - Redirect - Conditional Logic
  6. In the JavaScript code editor, enter:
    location.href='https://wsform.com';

    Change the web address to whichever URL you want the button to redirect to.

  7. Click Save & Close
  8. Preview the form to test your button.