{"article":{"id":51917532462484,"url":"https://insightly.zendesk.com/api/v2/help_center/en-us/articles/51917532462484.json","html_url":"https://documentation.insightly.com/hc/en-us/articles/51917532462484-Web-to-Contact-Web-to-Lead-Forms","author_id":48739671142292,"comments_disabled":true,"draft":false,"promoted":false,"position":0,"vote_sum":0,"vote_count":0,"upvote_count":0,"downvote_count":0,"section_id":51890181756180,"created_at":"2026-07-30T01:33:41Z","updated_at":"2026-10-22T19:54:26Z","name":"Web to Contact / Web to Lead Forms","title":"Web to Contact / Web to Lead Forms","source_locale":"en-us","locale":"en-us","outdated":false,"outdated_locales":[],"edited_at":"2026-09-04T01:32:02Z","user_segment_id":null,"user_segment_ids":[],"permission_group_id":454846,"content_tag_ids":["01KYNRZSFC4Y4XD2KPWVFA1VP7"],"label_names":[],"body":"<p>Build a form for your website that creates contacts or leads in\nInsightly on submission.</p>\n<p><strong>On this page:</strong></p>\n<ul>\n<li><a href=\"#creating-a-webform\" style=\"color: #ff5621;\">Creating a webform</a></li>\n<li><a href=\"#required-fields-and-spam-protection\" style=\"color: #ff5621;\">Required fields and spam protection</a></li>\n<li><a href=\"#adding-the-form-to-your-site\" style=\"color: #ff5621;\">Adding the form to your site</a></li>\n</ul>\n\n<h2 id=\"creating-a-webform\">Creating a webform</h2>\n<p>Insightly generates HTML you place on your site. Submissions create\ncontacts or leads, and each new record is tagged Web Contact or Web Lead so you can find it. Insightly can also send notifications when a new\nentry comes in.</p>\n<p>Go to System Settings and select Web to Contact or Web to Lead, then\ntick the box to enable it. From the User Responsible list, select the\nInsightly user who will be listed as the creator of the record. For a\nWeb to Lead form, choose a Lead source (this is ignored if you have Lead\nassignment rules enabled), then choose a visibility setting and click\nSave.</p>\n<p>Scroll up and click Create HTML For Your Website to open the form\nbuilder. Select the fields you want from the list. For Contacts, First\nName is the only required field. For Leads, Last Name, Lead Status, and\nLead Source are required. Remove other fields with the trash can icon,\nand drag the handle icon to reorder them. If you have a custom Opt-In\nfield for permission to contact visitors, include it here. Copy the HTML\nand paste it on your website.</p>\n<p>In the Form Submission Behavior section, choose where to direct\nvisitors after they submit: your own custom web page or the default\nInsightly thank you page (the Insightly page cannot be customized).\nChoose an email notification option, then click Save again.</p>\n<figure class=\"wysiwyg-image\">\n<a href=\"https://documentation.insightly.com/hc/article_attachments/51917532453268\" data-fancybox=\"web-to-contact-web-to-lead-forms-img-1\" data-caption=\"Web To Lead HTML Generation Setting\"><img src=\"https://documentation.insightly.com/hc/article_attachments/51917532453268\" alt=\"Web To Lead HTML Generation Setting — The Web To Lead settings page in Insightly CRM is shown, with the “Create HTML For Your Website” link highlighted in a red box. This link is where users go to generate the embed code needed to add a lead capture form to their website.\" style=\"max-width: 700px; width: 100%; max-height: 600px; height: auto; object-fit: contain; display: block; margin: 0 auto;\"></a>\n<p style=\"font-size: 13px; color: #6b6b6b;\">Web To Lead HTML Generation Setting</p></figure>\n<hr>\n<figure class=\"wysiwyg-image\">\n<a href=\"https://documentation.insightly.com/hc/article_attachments/51917532455060\" data-fancybox=\"web-to-contact-web-to-lead-forms-img-2\" data-caption=\"Web-to-Lead HTML Form Generator Dialog\"><img src=\"https://documentation.insightly.com/hc/article_attachments/51917532455060\" alt=\"Web-to-Lead HTML Form Generator Dialog — This dialog box in Insightly CRM allows users to select contact fields (such as First Name, Last Name, Email, and Phone) to include in a web form, then automatically generates the corresponding HTML code to embed on their website. The generated code captures visitor information and sends it directly into Insightly as a new lead.\" style=\"max-width: 700px; width: 100%; max-height: 600px; height: auto; object-fit: contain; display: block; margin: 0 auto;\"></a>\n<p style=\"font-size: 13px; color: #6b6b6b;\">Web-to-Lead HTML Form Generator Dialog</p></figure>\n<hr>\n<figure class=\"wysiwyg-image\">\n<a href=\"https://documentation.insightly.com/hc/article_attachments/51917532455188\" data-fancybox=\"web-to-contact-web-to-lead-forms-img-3\" data-caption=\"Web-to-Lead HTML Form Code Example\"><img src=\"https://documentation.insightly.com/hc/article_attachments/51917532455188\" alt=\"Web-to-Lead HTML Form Code Example — The image displays a copyable HTML code snippet generated by Insightly CRM for embedding a lead capture form on a website, including fields for First Name, Last Name, Organization, and Email. This matters because it shows users exactly what code to copy and paste into their website to automatically send form submissions into their Insightly CRM as leads.\" style=\"max-width: 700px; width: 100%; max-height: 600px; height: auto; object-fit: contain; display: block; margin: 0 auto;\"></a>\n<p style=\"font-size: 13px; color: #6b6b6b;\">Web-to-Lead HTML Form Code Example</p></figure>\n<h2 id=\"required-fields-and-spam-protection\">Required fields and spam\nprotection</h2>\n<p>To make a field required, edit the generated HTML. Find the field’s\n&lt;input&gt; line and, after type=\"text\" but before /&gt;&lt;br/&gt;,\nadd a space and type required. Repeat for each field you want to\nrequire, then finish creating your webform.</p>\n<p>You can also hide a field by editing its HTML directly, replacing the\ninput line with a hidden input type. This lets you create multiple\nwebforms with different visible fields.</p>\n<p>To reduce spam, add Google’s reCAPTCHA. Register your website at\nGoogle’s reCAPTCHA site and choose the reCAPTCHA V2 option (Insightly\nonly supports reCAPTCHA v2). You’ll receive a public key and a secret\nkey. Paste both into the fields at the bottom of the Web to Contact or\nWeb to Lead page and click Save. If you’re setting up both a Web to Lead\nand Web to Contact form, you only need to do this once. Then regenerate\nthe HTML and replace the code on your website.</p>\n<figure class=\"wysiwyg-image\">\n<a href=\"https://documentation.insightly.com/hc/article_attachments/51917532455828\" data-fancybox=\"web-to-contact-web-to-lead-forms-img-4\" data-caption=\"Insightly ReCAPTCHA Configuration Settings Panel\"><img src=\"https://documentation.insightly.com/hc/article_attachments/51917532455828\" alt=\"Insightly ReCAPTCHA Configuration Settings Panel — This image shows a settings panel where users can enable ReCAPTCHA by entering a Public Key and a Secret Key into their respective text fields. Both keys must be added to activate ReCAPTCHA protection, and a Save button is provided to confirm the changes.\" style=\"max-width: 700px; width: 100%; max-height: 600px; height: auto; object-fit: contain; display: block; margin: 0 auto;\"></a>\n<p style=\"font-size: 13px; color: #6b6b6b;\">Insightly ReCAPTCHA Configuration Settings Panel</p></figure>\n<h2 id=\"adding-the-form-to-your-site\">Adding the form to your site</h2>\n<p>Specific instructions exist for WordPress and Google Sites, alongside\nthe general HTML approach.</p>\n<p>For WordPress, add a new page, choose the Text tab in the page\neditor, and paste in the copied HTML. Save the page, add any additional\nlayout, text, or JavaScript validation, then publish.</p>\n<blockquote>\n<p><span style=\"font-style: normal;\">⚠️</span> Insightly does not support websites hosted at wordpress.com. These\ninstructions apply only to the full version of WordPress with a custom\ndomain name.</p>\n</blockquote>\n<p>For Google Sites, a bug causes HTML &lt;textarea&gt; fields to\ndisplay incorrectly when empty. To fix it, add a newline/carriage return\n(not an HTML &lt;br /&gt; tag) between the &lt;textarea&gt; and\n&lt;/textarea&gt; tags in your HTML.</p>\n<blockquote>\n<p><span style=\"font-style: normal;\">⚠️</span> Google Sites renders HTML forms within a 400px by 300px IFRAME. If\nyour form is larger than these dimensions, it will appear cut off, and\nthere is no known workaround for this Google Sites limitation.</p>\n</blockquote>\n<figure class=\"wysiwyg-image\">\n<a href=\"https://documentation.insightly.com/hc/article_attachments/51917532456468\" data-fancybox=\"web-to-contact-web-to-lead-forms-img-5\" data-caption=\"Pasting Web-to-Contact Form HTML into WordPress\"><img src=\"https://documentation.insightly.com/hc/article_attachments/51917532456468\" alt=\"Pasting Web-to-Contact Form HTML into WordPress — The screenshot shows a WordPress “Add New Page” editor in Text mode with Insightly’s Web-to-Contact form HTML code pasted into the content area. This illustrates how to embed the Insightly contact form into a WordPress page by switching to the Text tab and inserting the generated HTML code.\" style=\"max-width: 700px; width: 100%; max-height: 600px; height: auto; object-fit: contain; display: block; margin: 0 auto;\"></a>\n<p style=\"font-size: 13px; color: #6b6b6b;\">Pasting Web-to-Contact Form HTML into WordPress</p></figure>\n<hr>\n<figure class=\"wysiwyg-image\">\n<a href=\"https://documentation.insightly.com/hc/article_attachments/51917532456852\" data-fancybox=\"web-to-contact-web-to-lead-forms-img-6\" data-caption=\"WordPress Contact Form with Insightly Integration\"><img src=\"https://documentation.insightly.com/hc/article_attachments/51917532456852\" alt=\"WordPress Contact Form with Insightly Integration — A WordPress blog’s Contact Us page displays a web form collecting visitor details including name, organization, title, work email, phone, and additional background information. This form likely connects to Insightly CRM to automatically capture leads or contacts submitted through the website.\" style=\"max-width: 700px; width: 100%; max-height: 600px; height: auto; object-fit: contain; display: block; margin: 0 auto;\"></a>\n<p style=\"font-size: 13px; color: #6b6b6b;\">WordPress Contact Form with Insightly Integration</p></figure>\n<hr>\n<figure class=\"wysiwyg-image\">\n<a href=\"https://documentation.insightly.com/hc/article_attachments/51917532457748\" data-fancybox=\"web-to-contact-web-to-lead-forms-img-7\" data-caption=\"Edit HTML dialog for web-to-contact form\"><img src=\"https://documentation.insightly.com/hc/article_attachments/51917532457748\" alt=\"Edit HTML dialog for web-to-contact form — The screenshot shows an “Edit HTML” dialog box containing the embed code for an Insightly web-to-contact form, with a callout arrow pointing to the textarea section. A red annotation instructs users to add a line break at that specific location in the HTML to ensure the textarea field displays correctly in Google Sites.\" style=\"max-width: 700px; width: 100%; max-height: 600px; height: auto; object-fit: contain; display: block; margin: 0 auto;\"></a>\n<p style=\"font-size: 13px; color: #6b6b6b;\">Edit HTML dialog for web-to-contact form</p></figure>"}}