I want to custom my contact form like this:

enter image description here

It must send data for user submitted via email

How can I do that?

Any help? Thank in advance.


2 Answers 2


Please follow the below steps. https://magenticians.com/add-custom-field-in-magento-2-contact-page/


you can use below code to add custom form in contact page

create 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">    
       <referenceContainer name="content">
           <block class="Magento\Contact\Block\ContactForm" name="contactCustom" template="Vendor_Extension::customform.phtml" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.