Example file

01-minimal.html

Minimal install: the paste-in snippet, showing the form you designed in Subcontext.

To try this page, download it, replace the placeholders and put it on a test page of your website. Opening the file from your computer won't work, because the embeds check the website address they're on.

01-minimal.html · HTML Download
<!doctype html>
<!--
  Minimal install: the paste-in snippet from your lead form's Install tab
  ("We draw the form"). It shows the form you designed on the Design tab.

  Replace lfk_YOUR_KEY with your form's key, and open the page on a website
  that is on the form's list of allowed websites.
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Lead form: minimal install</title>
</head>
<body>
  <h1>Minimal install</h1>
  <p>A <code>&lt;div data-subcontext-leadform&gt;</code> and the script tag show the form you designed in
    Subcontext, with its consent wording, checks and thank-you message.</p>

  <!-- The form is drawn here. -->
  <div data-subcontext-leadform></div>

  <!-- lfk_YOUR_KEY: your form's key (starts lfk_). Find it in Subcontext on the lead form's Install tab. -->
  <script src="https://js.subcontext.com/leadform-latest.js" data-key="lfk_YOUR_KEY" defer></script>
</body>
</html>

Stuck, or something missing?

Get in touch and a person on the team will help.

Contact us