Custom Routing

Use JavaScript to dynamically select your form's endpoint.

To use custom routing with a dropdown menu, follow these steps:
  1. Copy the code below into your form's HTML page
  2. Update the dropdown options, action values, and logic based on your endpoints
  3. Customize the rest of the form as needed

Note: The action value specified in the <form> tag will be the default starting endpoint

    <form name="myForm" action="" method="POST">
    <label for="inquiry">Nature of Inquiry</label>
    <select id="inquiry" onchange="setAction(this)">
    <option value="pricing">Pricing</option>
    <option value="careers">Careers</option>
    <option value="support">Support</option>
    setAction = function(dropDown) {
    var action;
    switch(dropDown.value) {
    case "pricing":
    action = "";
    case "careers":
    action = "";
    case "support":
    action = "";
    document.myForm.action = action;