0

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.

0

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

| improve this answer | |
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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