# Building lead forms

Create and customize the multi-step wizard that captures leads.

## What are lead forms?

A lead form is the multi-step wizard your visitors fill out. Each step can be a photo grid, multi-select, single-select, or a contact form. When someone completes it, a new lead appears in your dashboard.

## Creating a form

1. Go to **Lead Forms** in the sidebar.
2. Click **Create Form** and give it a name (e.g. "Kitchen Consultation").
3. Add steps — drag to reorder. Types: **Photo Grid**, **Multi-Select**, **Single-Select**, **Contact**.
4. Add contact questions where they fit your workflow. Email or phone can share a requirement group so visitors only need to provide one.
5. Save a draft, preview it, then publish when ready. Draft changes do not change the form on your site.
6. Open **Connect** to choose the inFlow design, your site’s own design, or an agent handoff.

## Targeting a specific form

If you have multiple forms, use the `data-tks-form` attribute to specify which one the widget loads:

```html
<script src="https://api.inflow.build/toolkit.v2.js" data-tks-key="pk_your_key_here" data-tks-environment="your_environment_id" async></script>

<!-- Place where you want the form to appear -->
<div data-tks-form="FORM_ID_HERE"></div>
```

Connect fills in the form ID and public key for you. Register your website domain under Settings → Connections → Domains & environments before submitting (including `localhost` if you test locally). Install details are in [Embedding scripts](/docs/embed-scripts). Existing embeds continue using the published form. Custom site code may need an update when you publish changed required fields, types, or options.
