Setting up a Web Form to Capture Leads

Modified on Mon, 15 Jun at 11:44 AM

This guide explains how to get the information you need to capture leads from a web form into FLG.


You can generate an HTML template form directly within FLG:

  • Go to Tools > Capture Leads > From a Website > Web Form.
  • Under capture method, choose Web Form.
  • Set the Lead Group, Introducer, Site, and Marketing information.
  • (Optional) Add the confirmation page and error page URLs.


(There’s an explanation of each option onscreen listed below)

Once everything is set just click on Continue to generate the template.


Explanation of the onscreen options

  • Capture Method: The method being used to capture leads into FLG.
  • Lead Group: The Lead Group that you want the leads to be sent to. Managed from Settings > Lead Groups.
  • Introducer/Source: Optional. Specify an Introducer that the leads should be associated with. Managed in the Partners area.
  • Associated Site: Optional. Specify which site the leads should be associated with. Managed from Settings > Sites.
Note: - By associating a site, you can then send emails using the Sites Details i.e. Email address
Note: - If no site is selected, the leads will associate to the default Site on your account.

  • Confirmation Page URL: Optional. The web page that a user should be redirected to on a successful lead submission.
  • Error Page URL: Optional. The web page that a user should be redirected to in the event of any errors.
  • JavaScript Validation: Specify whether JavaScript validation should be included in the template. With it enabled any required fields will be validated on form submission.
  • Marketing Source / Medium / Term: User Defined. Marketing information that can be associated against the leads submitted from the web form. Useful for tracking where the lead came from or particular campaigns. Managed from Settings > Configuration > Preferences. (under Defaults) 

The generated template can be embedded onto a web page to submit leads.


Posting URL
The posting URL can be found as part of the Web Form template described above and will be included in the line for <form action> e.g.:
<form action="https://demo.flg360.co.uk/api/APIHTTPPost.php" method="post">

Data
You may have your own web form and only require the field names and URL to Post to. The best way to get these is by pulling them from the template but here’s an overview:

Response Codes 
A web form submission will return a response code based on the outcome.

  • 1 - Successful
  • 0 - Error
The '?id=000000' is added the Success Page URL

We append the new lead's ID to the success URL so you can parse it and present it to the user. This sometimes causes problems with some content management systems (CMS).

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article