---
title: "How to Customize Contact Us Form in Magento 2"
url: "https://magecomp.com/blog/customize-contact-us-form-magento-2/"
date: "2021-12-22T11:04:29+00:00"
modified: "2021-12-22T11:04:29+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "Magento Tutorials"
word_count: 380
reading_time: "2 min read"
summary: "Hello Magento Friends,"
description: "Customization being the most powerful feature of Magento, makes it the popular platform in the E-commerce industry. Learn How to Customize Contact Us Form in..."
keywords: "Magento Tutorials"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Create Virtual Product Programmatically in Magento 2"
    url: "https://magecomp.com/blog/create-virtual-product-programmatically-magento-2/"
  - title: "Upgrade Magento 2 with Composer"
    url: "https://magecomp.com/blog/upgrade-magento-2-composer/"
  - title: "How to Setup Cross-Sell, Up-Sell, and Related products in Magento 2"
    url: "https://magecomp.com/blog/setup-cross-sell-up-sell-and-related-products-in-magento-2/"
---

# How to Customize Contact Us Form in Magento 2

_Published: December 22, 2021_  
_Author: Dhiren Vasoya_  

![Customize Contact Us Form in Magento 2](https://magecomp.com/blog/wp-content/uploads/2021/12/How-to-Customize-Contact-Us-Form-in-Magento-2-1024x512.webp)

**Hello Magento Friends,**

Customization is the major benefit of Magento 2. The admin can customize every part of the Magento website. Today I am going to explain How to Customize Contact Us Form in Magento 2.

Contact form is the easy way to build the trust of customers. Customers can use contact forms to guarantee that someone is paying attention to their concerns and feedback. Learn [**How to Setup Contact us Form in Magento 2.**](https://magecomp.com/blog/setup-email-id-for-contact-us-form-in-magento-2/)

Contact us form usually include name, image, and message. However, you can customize the Contact Us form according to your business needs. Check out the [Quick Contact Form extension for Magento 2](https://magecomp.com/magento-2-quick-contact-form.html) which helps to embed the contact button on all the pages of your website.

Let’s learn the steps to Customize Contact Us Form in Magento 2.

## Steps to Customize Contact Us Form in Magento 2:
You have to override the Magento contact form file.

Copy the form.phtml from the path
**vendor/magento/module-contact/view/frontend/templates**

and paste it into the
**app/code/Vendor/Extension/view/frontend/templates**

**Step 1:** File Path : **app\code\Vendor\Extension\view\frontend\templates\form.phtml**

```
	<label class="label" for="custom">
                                   <?php /* @escapeNotVerified */ echo __('Custom Field') ?>
                     </label>

      	   <input name="custom" id="custom" title="
                      <?php / @escapeNotVerified */ echo __('Custom Field') ?>"
                      value="" class="input-text" type="text" data-validate="{required:true}"
      ```

**Step 2:** Add the below code in following file path: **app\code\Vendor\Extension\view\frontend\layout\contact_index_index.xml**

```
<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

   <body>

      <referenceBlock name="contactForm" remove="true"/>

       <referenceContainer name="content">

           <block class="MagentoContactBlockContactForm" name="customContactForm" template="Vendor_Extension::form.phtml" />

       </referenceContainer>

   </body>

</page>

```

## Conclusion:
This way you can Customize Contact Us Form in Magento 2. If you face any hardship while customizing your contact us form, get in touch with me via the comment box. Share the article with your developer friends and stay updated with us for more information.

**Happy Reading!**

</body>


---

_View the original post at: [https://magecomp.com/blog/customize-contact-us-form-magento-2/](https://magecomp.com/blog/customize-contact-us-form-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-09-01 12:09:30 UTC_  
