Sitecore Forms: Building Forms Without Developers
Every website needs forms: contact us, newsletter sign-up, event registration, lead capture. Sitecore Forms lets marketers build them with a drag-and-drop designer (in XP/XM), and XM Cloud offers its own forms capabilities for headless sites.
Building a Form
- Drag elements: text, email, phone, dropdown, checkbox, date, file upload
- Configure labels, placeholders, and help text
- Add validation: required, email format, regex, length
Submit Actions
When a visitor submits:
- Save data
- Send an email notification
- Redirect to a thank-you page
- Trigger goals (XP) or send events to CDP
- Send data to a CRM or marketing automation system via custom actions
Conditional Logic
Show or hide fields based on answers — e.g. show "Company size" only if "Enquiry type" is "Business".
Multi-Step Forms
Split long forms into pages to reduce drop-off.
Headless Considerations
In headless architectures, forms often post to an API route in your Next.js app, which validates and forwards submissions. Check the current recommended approach for XM Cloud forms in Sitecore's documentation.
Best Practices
- Ask for as little as possible
- Clear error messages
- Spam protection (CAPTCHA or honeypot)
- Consent checkbox and privacy link
- Never store sensitive data unnecessarily
Every extra form field costs you conversions. Ask only what you'll actually use.