How to Make a Custom Button Launch a Phone CallPRO

Custom buttons in WS Form can be configured to perform a variety of actions using conditional logic, including launching a phone call.

Tutorial

In this tutorial, we’ll set up a custom button that initiates a phone call when 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 - Custom Button - Launch Tel Phone - Conditional Logic
  6. In the JavaScript code editor, enter:
    location.href='tel:+15551231234';

    Change the telephone number to whichever number you want the button to call. You should use an international format with no spaces or formatting, e.g. +15551231234

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

Learn more about the tel: anchor: MDN Web Docs – <a>: The Anchor element