# Contact form ![image](https://docs-assets.foxecom.app/pebble-theme/Fox-BG%20Light%20\(19\)_cvMyIosQ.jpg) Let customers send you questions, order details, or support requests from a form on your store, next to your contact details such as email, phone number, and working hours. ## How to customize the Contact form section 1. Open the page where you want to display the section in the theme editor by clicking **Edit theme**. 2. Click **Add section**. 3. Select **Contact form**. 4. Click a **Custom field** block inside the **Contact form** block to edit the field. 5. To collect more information, click **Add block** inside the **Contact form** block and select **Custom field**. 6. Click each **Icon box: Card** block inside the **Group** to enter your contact details. 7. Click **Save**. Shopify sends each submission to your store's sender email. Learn more in the [Contact form block documentation](https://docs.foxecom.com/pebble-theme/theme-blocks/contact-form). ## Section settings ### Layout Controls how the content of the section is arranged. | Setting | Description | Options | | ---------------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | **Container** | Controls the width of the section content. | **Full:** Uses the available page width.

**Fixed:** Keeps the content within the theme's fixed container width. | | **Direction** | Controls whether the content is stacked or placed side by side. | **Vertical:** Stacks the content from top to bottom.

**Horizontal:** Places the content side by side. | | **Vertical on mobile** | Stacks side-by-side content vertically on mobile. | **On** or **Off**.

*Available when **Direction** is set to **Horizontal**.* | | **Alignment** | Controls how the content is aligned. | When **Vertical**: **Left, Center,** or **Right**.

When **Horizontal**: **Left, Center, Right,** or **Space between**. | | **Position** | Controls the vertical position of side-by-side content. | **Top, Center,** or **Bottom**.

*Available when **Direction** is set to **Horizontal**.* | | **Horizontal gap** | Sets the horizontal space between the content blocks. | **0–100px**. | | **Vertical gap** | Sets the vertical space between the content blocks. | **0–100px**. |
![image](https://docs-assets.foxecom.app/pebble-theme/image_FxBjGcce.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_W9jZpsMG.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_5IMQuvPf.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_veflvxsP.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_ma6jIEZe.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_J3eTKl3l.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_DPvyETDa.png) ![image](https://docs-assets.foxecom.app/pebble-theme/image_2EoiPRF3.png) ### Mobile layout | Setting | Description | Options | | ------------------ | --------------------------------------------------------------- | ------------ | | **Horizontal gap** | Sets the horizontal space between the content blocks on mobile. | **0–100px**. | | **Vertical gap** | Sets the vertical space between the content blocks on mobile. | **0–100px**. |
### Appearance Controls the visual style of the section. | Setting | Description | Options | | --------------------------------- | ----------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------- | | **Use color scheme in container** | Applies the color scheme to the section's inner container only. | **On** or **Off**. | | **Color scheme** | Applies a theme color scheme to the section. Learn more in [Colors](https://docs.foxecom.com/pebble-theme/theme-settings/colors). | Select an available color scheme. | | **Border** | Controls whether the section has an outline. | **None** or **Solid**. | | **Border width** | Controls the thickness of the section border. | **0–10px**.

*Available when **Border** is set to **Solid**.* | | **Border opacity** | Controls the opacity of the section border. | **0–100%**.

*Available when **Border** is set to **Solid**.* | | **Corner radius** | Controls how rounded the section corners appear. | **0–32px**. |
### Padding Controls the top and bottom spacing separately for desktop and mobile. | Setting | Description | Options | | ----------- | ------------------------------------------------------------- | :------------------------- | | **Devices** | Selects which device-specific padding values you are editing. | **Desktop** or **Mobile**. | | **Top** | Controls the space above the section content. | **0–100px**. | | **Bottom** | Controls the space below the section content. | **0–100px**. |
## Blocks By default, the section includes a **Contact form** block with three **Custom field** blocks, a **Divider** block, and a **Group** block that holds your contact details. ### Contact form The [**Contact form**](https://docs.foxecom.com/pebble-theme/theme-blocks/contact-form) block shows the form customers fill in. It always includes **Name**, **Email**, and **Your message** fields, and you add more with **Custom field** blocks. | Setting | Description | Options | | ------------------------- | -------------------------------------------------- | ----------------------------------------------------------------------- | | **Width** | Sets how wide the form is on desktop. | **Fit, Fill,** or **Custom**. | | **Custom width** | Sets the form width on desktop. | **0–100%**.

*Available when **Width** is set to **Custom**.* | | **Horizontal gap** | Sets the space between fields placed side by side. | **0–100px**. | | **Vertical gap** | Sets the space between rows of fields. | **0–100px**. | | **Width** (Mobile) | Sets how wide the form is on mobile. | **Fit, Fill,** or **Custom**. | | **Custom width** (Mobile) | Sets the form width on mobile. | **0–100%**.

*Available when **Width** is set to **Custom**.* | | **Vertical gap** (Mobile) | Sets the space between rows of fields on mobile. | **0–100px**. |
#### Custom field Each **Custom field** block adds one extra field to the form, such as **Phone**, **Order Number**, or **Country**. To add a field, click **Add block** inside the **Contact form** block and select **Custom field**. | Setting | Description | Options | | ----------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Field type** | Sets the type of information the field collects. | **Text, Textarea, Phone, Select, Checkbox,** or **Radio**.

*You can add only one **Phone** field.* | | **Label** | Sets the name shown for the field. | Enter your text. | | **Placeholder** | Sets the hint text shown inside the empty field. | Enter your text.

*Available for **Text**, **Textarea**, and **Phone** fields.* | | **Required** | Controls whether customers must fill in the field to send. | **On** or **Off**. | | **Full width** | Makes the field use the whole row. | **On** or **Off**. | | **Checked value** | Sets the value sent when the checkbox is selected. | Enter a value.

*Available when **Field type** is set to **Checkbox**.* | | **Uncheck value** | Sets the value sent when the checkbox is not selected. | Enter a value.

*Available when **Field type** is set to **Checkbox**.* | | **Options** | Sets the choices in a Select or Radio field. | Enter choices separated by commas, such as **Option 1, Option 2, Option 3**.

*Available when **Field type** is set to **Select** or **Radio**.* |
### Divider The [**Divider**](https://docs.foxecom.com/pebble-theme/theme-blocks/divider) block adds a line between the form and your contact details. Its settings cover thickness, length, hiding on desktop or mobile, and padding. ### Group The [**Group**](https://docs.foxecom.com/pebble-theme/theme-blocks/group) block keeps your contact details together and controls how they are arranged, sized, and spaced. Its settings cover layout, size, appearance, mobile layout, and padding. [*See the **Group block documentation** for all available settings*](https://docs.foxecom.com/pebble-theme/theme-blocks/group). The default **Group** includes: * [**Group**](https://docs.foxecom.com/pebble-theme/theme-blocks/group): Holds a [**Heading**](https://docs.foxecom.com/pebble-theme/theme-blocks/text) and a [**Text**](https://docs.foxecom.com/pebble-theme/theme-blocks/text) block that introduce your contact details. * [**Icon box: Card**](https://docs.foxecom.com/pebble-theme/theme-blocks/icon-box): Shows one contact detail with an icon, a heading, text, and an optional link, such as **Support**, **Call Us**, or **Working Hour**. To add more content to a group, click **Add block** inside the **Group** and select any block from the list. ### Add more blocks To add more content to the section, click **Add block** under the section and select a block. Learn more about each block type in [Theme blocks](https://docs.foxecom.com/pebble-theme/theme-blocks/overview). ## Tips and best practices * Turn on **Full width** for long fields, such as a **Textarea**, so customers have room to type. * Turn on **Required** only for information you really need, so the form stays quick to fill in.