---
title: Contact form
slug: docs/contact-form
docTags: 
createdAt: 2024-11-19T16:48:14.633Z
---

A contact form component is a user interface element designed to facilitate communication between users and an organization or individual. Your version of the component includes three essential fields.

![](https://api.archbee.com/api/optimize/bAgVaanSi1tFmfc8PghaH/cNJNocR5cvGVJJGFYQwnE_image.png)

## Properties

Generic

- **Email Label** - Text that will be displayed over the email field
- **Email Path** - Path under which field value will be stored in request or dataLayer. Must match AEP schema to enable pre-filling from profile. Eg. person.name.firstName. If empty, name is used. Either name or path must be set to store field in dataLayer or request payload.
- **Topic Input -&#x20;**&#x66;orm of the topic field: textfield, picker, hidden
- **Topic Label&#x20;**- Text that will be displayed over the topic field
- **Topic Path -&#x20;**&#x50;ath under which topic field value will be stored in request or dataLayer. Must match AEP schema to enable pre-filling from profile. Eg. person.name.firstName. If empty, name is used. Either name or path must be set to store field in dataLayer or request payload.
- **Message Label** - Text that will be displayed over the message field
- **Message Path -&#x20;**&#x50;ath under which message field value will be stored in request or dataLayer. Must match AEP schema to enable pre-filling from profile. Eg. person.name.firstName. If empty, name is used. Either name or path must be set to store field in dataLayer or request payload.

Button appearance

- **Label** - text to be displayed on the button
- **Variant** - visual variant

Button actions

- **Link to&#x20;**- screen to navigate to on click
- **Open as product page** (optional) - if you select Product template page in a Link to, select which product should be displayed on the product site.
- **Event Type** - name (type) of event to generate on click. Used to trigger Data Collection Tag Property Rules. Leave empty for no event.
- **Webhook** **URL** - URL to which a request should be sent on click. Leave empty for no request.
- **Form Id** - used to filter properties to include in webhook request payload.
- **Custom Data** - additional properties to add to dataLayer/request payload on click.&#x20;
- **Toast Variant** - type of toast that will be displayed on button click
- **Toast message&#x20;**- message that will be displayed in toast after button click

Alignment

- **Alignment** - horizontal alignment of whole component
- **Vertical alignment** - vertical alignment settings

Custom styles
