---
title: "Capture Leads with Forms in SitecoreAI"
description: "A step-by-step guide to capturing leads with forms in SitecoreAI: plan fields with your CRM team, build forms with logic and hidden fields in Forms, apply a shared style, send submissions to the CRM with a webhook, set redirect submit actions, activate, add forms in Page builder and test the full journey."
canonical: "https://www.techguilds.com/blog/capture-leads-forms-sitecoreai/"
type: "BlogPosting"
author: "Sana Kamalmaz"
publishedAt: "2026-10-19T13:00:00.000Z"
updatedAt: "2026-11-28T02:43:09Z"
source: "https://www.techguilds.com/llms.txt"
---

# Capture Leads with Forms in SitecoreAI

The form is one of the most important parts of a landing page. It's where interested visitors share their details in return for something they want: a quote, a guide or, in Brrrilliant's case, a list of the rebates they may qualify for.

In SitecoreAI, you build forms yourself in **Forms**, with no code. You drag fields onto a canvas, add logic so visitors only see the questions that apply to them, style the form to match your brand, and connect it to the system that should receive the answers, such as your CRM. Once you activate a form, it shows up in Page builder like any other component.

In this post, we'll plan our forms, build them in Forms, send their submissions to our CRM, add them to our landing page and supporting pages, and test the whole journey before we publish.

We'll keep using the example from the rest of this series: Brrrilliant Heat Pumps, a made-up installer of cold-climate heat pumps in Ontario, Nova Scotia and New Brunswick.

> **How Brrrilliant's landing page works**
> The page, /heat-pump-rebates, has one goal: a booked free home assessment. Homeowners arrive from ads and emails about one of three things: lower heating bills, comfort all year, or heat pumps that keep up in a cold winter. The page asks them to check their eligibility with a short form about their home, then shows the rebates they may qualify for and emails them a copy. From those results, they can book the assessment, where an installer visits and gives them a quote.

**Brrrilliant's two forms.** In [post 4](https://www.techguilds.com/blog/build-landing-page-sitecoreai-page-builder), we built the landing page and left a space for the eligibility check. Now we'll build two forms:

- **The eligibility check**, on the landing page: a short form about the visitor's home and how they heat it today. When they submit it, they land on the eligibility results page, and Brrrilliant's CRM emails them a copy of the rebates they may qualify for.
- **The booking form**, on the eligibility results page: it asks for a few details so an installer can call to schedule the free home assessment. When they submit it, they land on the booking confirmation page.

**What Forms does, and what your CRM does.** Forms collects the answers and passes them on. It doesn't store submissions, calculate results or send emails. That's the job of other systems in your DXP. We'll walk through how to connect Forms to such systems.

## Starting Off

We'll work in **Forms**, where we design forms, and in **Page builder**, where we add them to pages. Before you start, check these things:

- **That you can create forms.** Creating and editing forms needs an Advanced User or Admin role. If you don't have either, ask your administrator.
- **That forms are enabled in Page builder.** Before authors can add a form to a page, your developers or implementation partner has to allow the Form component on the site and in the parts of the page where forms can go. Your site's front end also has to be on a version that supports Forms. Ask them to confirm both before you start.
- **That you know where the data should go.** Forms sends each submission to a _webhook_: a web address that receives the data. Ask your CRM team for that address and how it's secured. It might be your CRM itself, or an integration tool that passes the data along, such as Zapier or Sitecore Connect.
- **That your privacy team has signed off.** If you plan to email people after they submit, agree with your privacy or legal team on the consent wording you need.

## Step 1: Plan Your Forms and Their Fields

An essential part of planning forms is deciding what to ask visitors. Long forms run the risk of driving visitors away, so ask only what you'll actually need. Sort each field into one of three groups:

- **Needed to give the visitor an answer or what they came for.** In our example, to check rebate eligibility, you need to ask visitors about whatever the rebate rules depend on.
- **Needed to follow up with the visitor.** An email address, and a phone number if you call people back.
- **Nice to have.** Leave these out, or ask for them later in the relationship.

Work with your CRM team on a name for each field. Each field in Forms has an internal name that visitors never see, and the webhook uses it to label the data it sends. Matching those names to your CRM's fields upfront saves rework later.

**Brrrilliant's plan.** Here's what Brrrilliant's two forms ask, and the type of field each question uses:

**Eligibility check**

_Brrrilliant's eligibility check: questions, field types and why each is there_
| Question | Field type | Why it's there |
| --- | --- | --- |
| Which province is your home in? | Select | The rebate program depends on the province |
| Do you own or rent your home? | Radio buttons | The rebate is for homeowners only |
| How do you heat your home today? | Radio buttons | The rebate depends on the heating being replaced |
| What type of home is it? | Select | Shapes the assessment and the quote |
| Email | Email | To send a copy of the results, and follow-up emails if they consent |
| Consent | T&C checkbox | Permission to email |

**Booking form**

_Brrrilliant's booking form: questions, field types and why each is there_
| Question | Field type | Why it's there |
| --- | --- | --- |
| Name | Short text | So the installer knows who to ask for |
| Phone | Phone | To call and book the visit |
| Email | Email | To confirm the booking |
| Best time to call | Select | So the installer calls when the visitor can answer |
| Source page | Short text, hidden | Records which page the booking came from |
| Consent | T&C checkbox | Permission to contact |

The hidden field on the booking form is valuable. Visitors don't see it, but it still sends its value with the submission, so the CRM knows the lead came from the rebate campaign.

## Step 2: Build the Form in Forms

Go to **Design > Forms** and click **Create form**. The form editor will open. You can start from a blank canvas, or click **Load template** to begin from one of the ready-made templates or one your team saved earlier.

[Image: The Create form dialog with the name "Brrrilliant eligibility check" entered]

[Image: The empty form editor, with the Layouts tab open on the left and layout options on the canvas]

**Lay out the form.** On the **Layouts** tab, drag a layout onto the canvas. A full-width layout gives you one column; others split a row into two, three or four slots. You can stack several layouts, and duplicate layouts to save time.

**Add the fields.** On the **Items** tab, drag each field from the **Fields** section into a slot. Note that Forms will add a submit button as soon as you place a field. For each field, use the right-hand pane to:

- Write the label, placeholder text and help text.
- Mark it **Required** if visitors shouldn't be able to submit the form without filling it in.
- Change its internal **Name** to the one you agreed with your CRM team. Names must be unique within the form.
- Add the options for select fields and radio buttons. If your CRM expects different values from the labels visitors see, click **Custom values** and enter them.

[Image: The Add item picker on the canvas, listing field types such as Select, Email, Phone, Radio buttons and T&C checkbox]

[Image: A Select field placed on the canvas, with a Submit button added below it automatically]

[Image: The province field selected, with its Name, Label and Placeholder set in the right-hand pane]

[Image: The province field's options in the right-hand pane, with Custom values turned on and province codes entered]

For Brrrilliant's eligibility check, that means:

- a select field for the province
- radio buttons for ownership
- radio buttons for current heating
- a select field for the type of home
- an email field
- a T&C checkbox with the consent wording from your privacy team

[Image: The T&C checkbox on the canvas with Brrrilliant's consent wording, and its settings in the right-hand pane]

The booking form will have:

- a short text field for the name
- a phone field
- an email field
- a select field for the best time to call
- a hidden short text field for the source page (more on that below)
- a T&C checkbox with the consent wording

**Show only the questions that apply.** On the **Logic** tab, click **Add logic** to set rules like "when this answer is X, hide that field" or "skip to this page". For our example, we'll use this rule: when a visitor picks "Other" as their current heating, the form shows a short text field so they can describe it.

[Image: A logic rule that hides the "Tell us how you heat your home" field when the current heating is not equal to Other]

**Split it into pages, if it helps.** A form can have several pages, each with its own **Next** or **Back** buttons. You can also add a summary page, so visitors can check their answers before they submit. Note that if you add reCAPTCHA, it has to go on the last page.

**Capture where the visitor came from.** To demonstrate that, in the booking form, we'll add a short text field, mark it **Hidden** and give it a name such as _source_. Because Forms can fill a field from a parameter in the page's web address, a link such as _?source=rebate-campaign_ fills it in without the visitor doing anything. The hidden field still sends data with the submission.

[Image: The booking form's Source page field selected, with the hidden setting turned on in the right-hand pane]

**Check accessibility.** Some accessibility features come with Forms automatically, including keyboard navigation, screen reader support and clear error messages. Some things depend on your design, though, so click the accessibility check in the top right corner. It flags things like:

- missing labels
- missing alt text
- low contrast
- vague link text

Tip: Run the accessibility check in both the desktop and mobile views.

[Image: The Accessibility panel flagging low contrast on the button's text]

[Image: The Accessibility panel with all checks passed]

**Save as you go.** Click **Save and exit** when you're done, or **Save a version** to keep a copy you can restore later. Forms also autosaves every few minutes, but autosave doesn't update the form.

## Step 3: Make the Form Look on Brand

Forms gives you two ways to style forms:

- **Customize this form.** In this path, you use the general styling options in the left-hand pane and each item's settings in the right-hand pane to set things like colors, borders, spacing and fonts. When one field looks right, click **Apply to all** to copy its style to all fields of that type.
- **Apply a shared style.** In this path, you click the **Styles** tab, then **Create style**, to build a reusable style in the visual builder or as CSS. Then you open your form's **Settings** and click **Apply style to form**.

[Image: Customizing the submit button's colors and label in the right-hand pane]

Shared styles are the better and more efficient choice once you have more than one form, because they let you apply the same look to multiple forms. Note, however: if you change a shared style later, you have to apply it to each form to make the change show up.

For our example, we took the second path. We created a shared style called Brrrilliant forms with the site's font, colors and a full-width button, then applied it to both forms. We darkened the button's orange slightly to pass the accessibility check, and adjusted each form's spacing in its item settings.

[Image: The Brrrilliant forms style in the Styles builder, with the Label section open]

[Image: The Apply style to all items dialog with Brrrilliant forms selected]

[Image: The styled eligibility check on the landing page in Page builder, ending with a full-width "See my rebates" button]

## Step 4: Send Submissions to Your CRM with a Webhook

A webhook tells Forms where to send submissions. You set a webhook up once, and you can set up any form to use it.

**Create the webhook.** Open the form, click **Settings**, then **Manage webhooks**, then **Create webhook**. Fill in:

- **Authentication type:** OAuth 2, Basic, API key or no authentication. Use whatever your CRM team points you to. Avoid no authentication.
- **Name:** use something your team will recognize, such as _CRM – rebate campaign_.
- **URL:** the address your CRM team gave you.

[Image: The Create webhook panel with Basic authentication, a name and a URL filled in]

The address has to be a secure, public web address. Forms won't send to a plain HTTP address, a private network or a local test server. If your CRM team gives you one of those, they'll need to put the data behind a public, secure endpoint first, for example through an integration tool.

[Image: The new webhook on the Webhooks page, marked Not in use]

**Connect the webhook to your form.** Creating a webhook doesn't connect it to a form. Back on the **Settings** page, select your new webhook from the **Choose webhook** list and click **Add**.

[Image: The form's Settings page with the webhook selected under Choose webhook]

**Test it.** Click **Test webhook**, fill in the form and submit it. Forms shows you exactly what it will send: the address, the data and the request headers. Check that every field name matches what the CRM expects, and ask your CRM team to confirm the test arrived. Use made-up details your CRM team can spot, such as a test email address, so they can remove test entries afterwards.

[Image: The eligibility check filled in with test answers in the Test webhook view]

[Image: The Test form submission dialog showing the payload and request headers]

[Image: The test submission received at the test endpoint, with the same field names and values]

[Image: The booking form filled in with test answers]

[Image: The booking form's test payload and request headers]

[Image: The booking form's test submission received at the test endpoint]

If the test comes back with a negative response, it means Forms reached your CRM but the CRM rejected the data. The usual causes are field names the CRM doesn't recognize, or names with spaces or special characters. Rename the fields and test again.

**Your CRM will take it from there.** In our example, Brrrilliant's CRM team would set up two automations: one that works out which rebates the user is eligible for and emails them a copy, and one that alerts the installation team when a user has booked an assessment.

## Step 5: Set What Happens After Submit, and Activate

**Choose the submit action.** In the form's **Settings**, open **Choose submit action** and pick one:

- **None:** nothing happens on screen.
- **Redirect to a URL:** sends the visitor to another page.
- **Show message:** shows a message in place of the form.

Then write a **Fail message** for when something goes wrong. Make it helpful: say what to try, and how to contact support if needed.

A redirect is usually the better choice for a campaign, because a thank-you page is more valuable than just a message. In addition to setting users' expectations and offering them next steps, it can give you a page to track and measure.

In our example, Brrrilliant's forms will both redirect:

_Where each Brrrilliant form redirects and what the visitor sees there_
| Form | Redirects to | What the visitor sees there |
| --- | --- | --- |
| Eligibility check | Eligibility results page | What happens next, a reminder to check their inbox, and the booking form |
| Booking form | Booking confirmation page | When to expect a call and how to prepare for the assessment |

[Image: The eligibility check's Settings, with Redirect to a URL chosen and the results page address entered]

**Activate the form.** Next to **Save and exit**, open the menu and click **Save and activate**. You can also activate a form from the Forms dashboard. Before you can activate a form, it needs a webhook and an action button on every page. Two things to know first:

- **Activation is permanent.** Once a form is active, you can't delete it. You can still edit its design and settings, or archive it.
- **Activation applies to every site by default.** If your environment has several sites, use **Form available on** in **Settings** to limit the form to the ones that need it. Brrrilliant limits both forms to its own site.

[Image: The Save and exit menu open, showing Save and activate, Save a version and Save as template]

[Image: The Forms dashboard with both Brrrilliant forms in Draft status]

[Image: The Confirm dialog warning that activation can't be reversed]

[Image: The Forms dashboard after activating the eligibility check, which now shows Active]

[Image: The Forms dashboard with both Brrrilliant forms Active]

Active forms show up in Page builder, ready to add to a page.

## Step 6: Add the Forms to Your Pages

You add an active form to a page the same way you add any other component.

**1. **In Page builder, open the page in **Editor** mode.

**2. **Click the **Components** tab and find the **Forms** section. It lists every form that's active for this site.

**3. **Drag the form to where you want it. A green plus means you can drop it there; a light gray cursor means you can't. You can also use the plus buttons on the canvas, or the **Layers** tab.

If the **Forms** section is missing, or a form won't drop where you want it, it's probably because the Form component hasn't been allowed in that part of the page. That's a fix for your developers or implementation partner (see "Starting Off").

**Where Brrrilliant puts each form:**

- **The eligibility check** goes under the "Check your eligibility" heading on the landing page. That's where the hero's call to action jumps to.
- **The booking form** goes on the eligibility results page, under a short note on what happens next and a reminder that the results are on their way by email.

[Image: Page builder with the Forms section of the Components tab open, and the eligibility check under the "Check your eligibility" heading]

[Image: The eligibility results page in Page builder, with the booking form under "Book your free home assessment"]

**Brrrilliant's follow-up pages.** In [a previous post](https://www.techguilds.com/blog/build-landing-page-sitecoreai-page-builder), we created the eligibility results and booking confirmation pages with placeholder copy. Behind the scenes, we filled them in the same way we built the landing page:

- **Eligibility results:** thanks the visitor, reminds them to check their inbox for their rebate summary, explains what a free home assessment involves, and introduces the booking form.
- **Booking confirmation:** confirms the request, says when someone will call, lists what to have ready for the visit, and links back to the FAQ.

We kept both pages short and focused. They're the next step in the journey, not a place to start browsing.

**Pass the source to the booking form.** Go back to the eligibility check's **Settings** and add a parameter that names your campaign to the end of its redirect address. For our example, we added _?source=rebate-campaign_. Visitors then land on the results page with that parameter in the address, the hidden field on the booking form picks it up, and the CRM knows exactly which campaign the booking came from.

## Step 7: Test the Whole Journey, Then Publish

Testing each form on its own isn't enough. You need to walk through the journey a visitor takes, end to end.

**Preview each form.** In the form editor, click **Preview** and switch between the mobile, tablet and desktop views. Click through every page. Submit with a required field left blank to check the error messages, then submit properly.

[Image: The eligibility check in desktop preview, with Other selected and the extra text field showing]

[Image: The booking form in desktop preview]

[Image: The eligibility check in mobile preview]

**Walk the journey on the page.** Preview the page your form sits on and go through it the way a visitor would:

**1. **Click the call to action that leads to your form, and check that it lands on the form. For Brrrilliant, that's the hero's "Check your eligibility" button.

**2. **Fill in the form and submit it. Check that you land on the page it redirects to.

**3. **Ask your CRM team to confirm the submission arrived, the field names match, any hidden fields were filled in, and any follow-up, such as an email, went out.

**4. **Try it once on a phone, too.

**Publish.** When the journey works, publish the landing page and both follow-up pages the way we did in [the previous post](https://www.techguilds.com/blog/build-landing-page-sitecoreai-page-builder). Your forms were already made live when you activated them, so there's nothing extra to publish in Forms.

**Watch the dashboard.** The Forms dashboard shows the state of each form. Check it in the first days after launch, along with the leads arriving in your CRM, so you catch problems early.

## Your Forms Checklist

- You have the Advanced User or Admin role, and your developers or implementation partner has enabled forms in Page builder
- Each form asks only for what you'll use, and each field's name matches your CRM
- Logic is used properly if needed to hide and show the questions as intended
- Consent wording is approved and on all forms
- The forms pass the accessibility check on desktop and mobile
- The forms use your shared brand style
- The webhook test arrived in your CRM
- Each form redirects to the right follow-up page
- Each form is activated, and limited to the sites that need it
- You've walked the whole journey, on a phone too, and published the pages

## Up Next

Our forms now capture leads. In the [next post](https://www.techguilds.com/blog/ab-n-test-landing-page-sitecoreai), we'll run an A/B/n test on the landing page's hero headline and make the winner the default.
