--- title: Add a contact form to your theme description: Learn how to create a contact form, and add custom fields. source_url: html: https://shopify.dev/docs/storefronts/themes/customer-engagement/add-contact-form md: https://shopify.dev/docs/storefronts/themes/customer-engagement/add-contact-form.md --- ExpandOn this page * [Required input](https://shopify.dev/docs/storefronts/themes/customer-engagement/add-contact-form#required-input) * [Optional inputs](https://shopify.dev/docs/storefronts/themes/customer-engagement/add-contact-form#optional-inputs) # Add a contact form to your theme You can add a contact form to your theme to allow customers to get in touch with the merchant. Tip To learn more about the merchant experience of receiving submissions, refer to [View contact form submissions](https://help.shopify.com/manual/online-store/themes/customizing-themes/add-contact-page#view-contact-form-submissions). You can add this form with the Liquid [form tag](https://shopify.dev/docs/api/liquid/tags/form#form-contact) and accompanying `'contact'` parameter. Inside the form, you can include two different input types: * [Required input](#required-input) * [Optional inputs](#optional-inputs) The following is an example of the form with both of the above input types: ```liquid {% form 'contact' %} {{ form.errors | default_errors }}