Overriding default return URL in web forms

When you have two or more web forms for submitting leads, you can configure a different return URL for each form. For example, if you have web forms in different languages and would like to redirect users to a web page in their language after they submit a lead.

To do so, override the default redirect URL in the HTML code for each web form. 

  1. In the HTML code implementing your web form, locate the following element:

    Copy
    <input type="hidden" name="WebLeadReturnURL" id="WebLeadReturnURL" value="">

    If this element is missing (for example, you used an old Sage CRM version to generate the HTML code), manually add the following code between the </TABLE> and </FORM> tags:

    Copy
    </TABLE>
    <input type=hidden name=_HIDDENlead_source value="Web">
    <input type="submit" value="Save and Submit">
    <input type="hidden" name="RuleID" id="RuleID" value="">
    <input type="hidden" name="WebLeadReturnURL" id="WebLeadReturnURL" value="">
    </FORM>
  2. In the value attribute of the element whose ID is WebLeadReturnURL, enter the URL to which you want to redirect users after they submit a lead. Prefix the URL with http:// or https://.

    Example:

    Copy
    <input type="hidden" name="WebLeadReturnURL" id="WebLeadReturnURL" value="http://www.mywebsite.com">
    When the value attribute in this element is empty, the form uses the default return URL defined in the Web to Lead configuration settings.
  3. Save your changes.