1. Feature Overview
Once you’ve created and published LeadSquared Landing Pages, you can export the form HTML, and embed this form in any website of your choice. When a lead submits this form, lead details are automatically captured in your LeadSquared account. The Export Form HTML is useful when –
- You have multiple third-party websites through which you capture leads
- You want the lead capture form to reflect the look and feel of your website
2. Prerequisite
You must be an Admin user or a Marketing user in order to export the form HTML.
3. Export Form as HTML
- Navigate to Marketing>Landing Pages.
- Alongside the published Landing Page that contains the form you want to export, hover your cursor over
, and click Export Form HTML.
- From the following options, copy the HTML code that meets your requirement –
3.1 Without Style
You can use this code when you want the form to match the look and feel of the website in which the form is embedded. To do this, please add your own formatting and validations.
The HTML code is rendered with no existing form style, no formating, no controls (e.g., the date picker, the country code picker, etc. will not be visible), and no field validations (e.g., for phone field validations, if the phone number field matches the minimum and maximum length requirements, etc.). Only the barebones form fields are rendered.
3.2 With Style
The HTML code is rendered with the existing form style, formating. While controls will be visible (e.g., the date picker, the country code picker, etc.), you will not be able to use the control icons to pick a value. Field validations will not be functional here. The form is rendered similar to how it looks on your Landing Page.
3.3 With Style Beta
The HTML code is rendered with the existing form style and formating. While controls will be visible (e.g., the date picker , the country code picker, etc.), you will not be able to use the control icons to pick a value. Field validations (e.g., for phone field validations, if the phone number field matches the minimum and maximum length requirements, etc.) will work as expected. The form is rendered similar to how it looks on your Landing Page.
Any Questions?
Did you find this article helpful? Please let us know any feedback you may have in the comments section below. We’d love to hear from you and help you out!