Setting up a Web Form to Capture Leads

Created by Daniel Beckett, Modified on Wed, 22 Mar, 2023 at 12:09 PM by Daniel Beckett

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

Type

Required

Sample

Notes

intLeadGroupID

Integer

Yes

51639

Provided by ‘Capture Leads’

strLeadFirstName

String

Yes

John

First Name

strLeadLastName

String

Yes

Smith

Last Name

strSource

String

User Defined

Google

Marketing Source

strMedium

String

User Defined

PPC

Marketing Medium

strTerm

String

User Defined

Loans

Marketing Term

intSiteID

Integer

User Defined

14415

Provided by ‘Capture Leads’

intReferrerBuyerID

Integer

User Defined

31211

Provided by ‘Capture Leads’

strAPISuccessURL

String

User Defined

https://www.example.com/thank-you

Redirect Page (on a successful submission).

strAPIFailURL

String

User Defined

https://www.example.com/error

Redirect Page (Where there is an error).

intTitleID

Integer

User Defined

1 (Mr.) 2 (Mrs.) .....

Provided by ‘Capture Leads'. Must match a value from the list.

strLeadPhone1

String

User Defined

01282123456

Phone number.

strLeadPhone2

String

User Defined

01282654321

Alternative phone number.

strLeadFax

String

User Defined

01282321654

Fax number.

strLeadEmail

String

User Defined

[email protected]

Must be valid email address.

strLeadAddress

String

User Defined

1 High Street

Address line 1

strLeadAddress2

String

User Defined

This Area

Address line 2

strLeadAddress3

String

User Defined

This Village

Address line 3

strLeadTownCity

String

User Defined

This Town

Town

strLeadPostcode

String

User Defined

BB12 1BC

Postcode

strLeadCompanyName

String

User Defined

ABC Ltd.

Company name

strLeadJobTitle

String

User Defined

Manager

Job title

strLeadDOBDay

String

User Defined

15

Date of birth (day)

strLeadDOBMonth

String

User Defined

12

Date of birth (month)

strLeadDOBYear

String

User Defined

1990

Date of birth (year)

strLeadDOB

String

User Defined

1990-12-15

Full date of birth. dd/mm/yyyy or yyyy-mm-dd

intDPAStatusPhoneID


Integer

No

1

Permission to phone. 1 is permission 'Yes' and 2 is permission 'No'.

intDPAStatusSMSID


Integer

No

1

Permission to text. 1 is permission 'Yes' and 2 is permission 'No'.


intDPAStatusEmailID


Integer

No

1

Permission to email. 1 is permission 'Yes' and 2 is permission 'No'.

intDPAStatusMailID


Integer

No

1

Permission to mail. 1 is permission 'Yes' and 2 is permission 'No'.

intDPAStatusFaxID

Integer

No

1

Permission to fax. 1 is permission 'Yes' and 2 is permission 'No'.

LeadData1 - 50

Varies

User Defined

Anything

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

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