FLG Support

Setting up a Web Form to Capture Leads

This guide is intended to help you get the information required to capture leads from a Web Form into FLG.
A HTML template form can be generated from within FLG by going to:
Tools > Capture Leads > From a Website > Web Form
Select capture method: 'Web Form’

Choose the Lead Group, Introducer, Site and Marketing information.

The confirmation page and error page URL’s can also be added.
(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:

Field
TypeRequiredSampleNotes
intLeadGroupID
IntegerYes51639Provided by ‘Capture Leads’
strLeadFirstNameStringYesJohnFirst Name
strLeadLastNameStringYesSmithLast Name
strSourceStringUser Defined
GoogleMarketing Source
strMediumStringUser Defined
PPCMarketing Medium
strTermString
User Defined
LoansMarketing Term
intSiteIDIntegerUser Defined
14415Provided by ‘Capture Leads’
intReferrerBuyerIDIntegerUser Defined
31211Provided by ‘Capture Leads’
strAPISuccessURLStringUser Defined
https://www.example.com/thank-you

Redirect Page (on a successful submission).
strAPIFailURLStringUser Defined
https://www.example.com/error

Redirect Page (Where there is an error).
intTitleIDIntegerUser Defined
1 (Mr.) 2 (Mrs.) .....
Provided by ‘Capture Leads'. Must match a value fr om the list.
strLeadPhone1StringUser Defined
01282123456Phone number.
strLeadPhone2StringUser Defined
01282654321Alternative phone number.
strLeadFaxStringUser Defined
01282321654Fax number.
strLeadEmailStringUser Defined
john@abc.com
Must be valid email address.

strLeadAddressStringUser Defined
1 High Street
Address line 1
strLeadAddress2StringUser Defined
This Area
Address line 2
strLeadAddress3StringUser Defined
This Village
Address line 3
strLeadTownCityStringUser Defined
This Town
Town
strLeadPostcodeStringUser Defined
BB12 1BC
Postcode
strLeadCompanyNameStringUser Defined
ABC Ltd.

Company name
strLeadJobTitleStringUser Defined
ManagerJob title

strLeadDOBDayStringUser Defined
15Date of birth (day)
strLeadDOBMonthStringUser Defined
12Date of birth (month)
strLeadDOBYearStringUser Defined
1990Date of birth (year)
strLeadDOBStringUser Defined
1990-12-15
Full date of birth. dd/mm/yyyy or yyyy-mm-dd
intDPAStatusPhoneIDIntegerNo1Permission to phone. 1 is permission 'Yes' and 2 is permission 'No'.
intDPAStatusSMSIDIntegerNo1Permission to text. 1 is permission 'Yes' and 2 is permission 'No'.
intDPAStatusEmailIDIntegerNo1Permission to email. 1 is permission 'Yes' and 2 is permission 'No'.
intDPAStatusMailIDIntegerNo1Permission to mail. 1 is permission 'Yes' and 2 is permission 'No'.
intDPAStatusFaxIDIntegerNo
1Permission to fax. 1 is permission 'Yes' and 2 is permission 'No'.
LeadData1 - 50
VariesUser Defined
AnythingA list of fields in your Lead group. Provided by ‘Capture Leads.

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).

Need more help?

We always aim to provide great support to everyone. Contact our support team for help and advice or let us know how we can improve FLG on our feedback site.