How to Customize Contact Us Form in Magento 2: A Step-by-Step Guide (2027 Updated)

Magento 2 comes with a free Contact Us form with four fields. This guide shows what you can change in it from the admin, and how to replace it with a form you build in WebForms 4 when you need more fields or routing by subject.
WebForms Suite by MageMe can replace the default Magento 2 Contact Us form with a form you build by drag and drop in the admin, without editing PHP or template files. It runs on Magento 2.4.6 to 2.4.9 with PHP 8.1 to 8.5 and needs the Magento Page Builder and Login as Customer Assistance modules. It works with Luma, Hyvä or Breeze.
Introduction
When every message arrives in one mailbox with the same email subject, someone has to read each one to decide who should answer it. A form that asks for the subject first, and then only for the details that subject needs, can send each message to the right person straight away.
Magento’s built-in form cannot do that without code. A Magento 2 form builder extension such as WebForms Suite can. The screenshot below shows the Contact Us template of WebForms 4 on a store’s /contact/ page.
What You Can Change in the Free Magento 2 Contact Form
Magento’s own Contact Us form is free and comes with every store. It is rendered from code, not from a CMS page, and it has four fields:
- Name (required)
- Email (required)
- Phone Number (optional)
- What’s on your mind? (required)
Without an extension, you can change these settings in the admin:
- Who receives the messages. In Stores → Configuration → General → Contacts you set Enable Contact Us, Send Emails To, Email Sender and Email Template. All messages go to the one address in Send Emails To.
- The email your team receives. Go to Marketing → Communications → Email Templates, click Add New Template, load the default Contact Form template, edit its HTML and save it. Then select it in Email Template under General → Contacts.
- Spam protection. In Stores → Configuration → Security → Google reCAPTCHA Storefront, Enable for Contact Us turns on Google reCAPTCHA (v2 checkbox, v2 Invisible or v3 Invisible) for this form.
The admin has no screen for adding fields. To change them, a developer overrides the form template (Magento_Contact::form.phtml) in your theme. If four fields and one recipient are enough, keep the built-in form.
Related: You can also display your contact form as a popup triggered by a button click.
/contact/ without code.Why Upgrade Your Magento 2 Form? Addressing Common Challenges
The default Magento 2 contact form has these limits:
- error_outline Four fixed fields and no file upload
- alt_route All messages go to one address
- rule No subject list and no conditional questions
- code Changing the form needs a developer
Your team then has to ask the customer again for an order number or a phone number. A form builder asks for these details on the form.
WebForms Suite: Key Features for Magento 2 Form Building
WebForms Suite is the license that includes WebForms 4. These features matter most for a contact form:
build Drag-and-Drop Builder
45 form elements, including 36 field types. Drag them onto the form and set them up in the right panel.
category Contact Us Template
One of 27 templates. It has a Subject list and five emails: four to your team and one to the customer.
rule Conditional Logic
Rules on the Logic board show or hide fields and sections based on earlier answers.
inbox One Inbox
Messages from every form in one admin list, with statuses, assignment, notes and replies.
On Luma, forms need no extra package. Hyvä and Breeze stores install the WebForms package built for their theme, which is included in the license.
Step-by-Step Guide: Creating a Custom Contact Form in Magento 2
These steps use WebForms 4 and its Contact Us template. They assume WebForms is installed and you can sign in to the Magento admin.
-
mark_email_readTurn On Email Delivery
- Go to Stores → Configuration → MageMe Extensions → WebForms, expand Email & Replies, set Deliver Notifications to Yes and click Save Config. A new installation starts with it off.
- In Stores → Configuration → General → Store Email Addresses, enter real mailboxes for General Contact, Sales Representative and Customer Support. The Contact Us template sends its team emails there.
- WebForms sends email from a scheduled job, so Magento cron must run on your server.
-
add_circleCreate the Form From the Contact Us Template
- Go to Content → WebForms → Manage Forms and click Add Form.
- Leave Contact Us under Support & Feedback selected and click Use This Template. The form builder opens with your new form.
-
editAdd and Customize Fields
- Drag a field from the left panel onto the form, for example File from the Files & Media group.
- Click a field to set its label, Required, help text and validation in the right panel.
- To change the subjects, click Subject and edit its options. Then check the email conditions and rules that use a renamed or removed option.
- The template’s Phone field starts with Initial Country set to Auto, which sends each visitor’s IP address to ipinfo.io. To avoid that, select your country in Initial Country.
- Until you switch the new form on, the builder saves each change automatically. After that, changes go into a draft, and visitors see them only after you click Publish Changes.
-
ruleApply Conditional Logic
- The template already has rules: when the visitor picks Request a callback, Phone and Preferred call time appear.
- To add a rule, click Logic in the builder’s top bar, then New rule. Pick the trigger field and its values, select Show or Hide and choose the fields or sections it controls.
-
alt_routeRoute Messages to the Right Team
- Each team email of the template has a condition on Subject. Order, delivery, payment and complaint messages go to Customer Support, product questions and callback requests to Sales Representative, and Something else to General Contact. The visitor gets a confirmation.
- For addresses of your own, such as one per department, use a Contact field instead. Each option has a Recipient Email the visitor does not see. A notification with Recipient Source set to The Contact the Visitor Chose sends to it.
-
securitySet Up Spam Protection
- Go to Stores → Configuration → MageMe Extensions → WebForms and expand Spam Protection.
- In CAPTCHA Provider, select reCAPTCHA (v2, v3 or Enterprise), hCaptcha or Turnstile, and paste the keys that service gave you.
- In Require CAPTCHA for, select Guests Only or All Visitors, then click Save Config. Without keys, a form that asks for a CAPTCHA refuses every submission.
More in our guides to Magento 2 form spam protection and hCaptcha.
-
publishConfigure and Publish
- In the builder, click Next: Settings at the right end of the top bar. Turn on Enable Form and click Save.
- In Stores → Configuration → MageMe Extensions → WebForms, open Storefront Forms → Contact Page. Set Replace Contact Page to Yes, select your form in Form to Use and click Save Config.
- Send a test message from
/contact/. It appears in Content → WebForms → Inbox.
Your custom form now shows at
yourdomain.com/contact/in place of the standard Magento form, and the footer link stays the same. For a page of its own, such as/customer-service, give the form a URL Key in its Placement section.
The WebForms docs walk through the same path with more detail in the Quick start and the Contact form recipe. To switch the contact page to another form later, see Replace the contact page.
Advanced Techniques: Maximizing Your Magento 2 Form's Potential
Once the contact form works, you can extend it:
- view_carousel Multi-step Forms: each section can be one step, with Back and Continue between them. See multi-step forms in Magento 2.
- attach_file File Uploads: a File field lets customers attach photos or documents. See file upload in Magento 2 forms.
- compare_arrows Integrations: send submissions to HubSpot, Klaviyo, Mailchimp, Salesforce, Zapier, Zendesk, Zoho or Freshdesk. See Integrations.
- verified_user Validation Rules: required fields, length limits, input masks and patterns, each with your own error message. See Validation.
The same form can also open from a popup button or sit on a CMS page. See how to embed forms in Magento 2.
Conclusion: Elevate Your Customer Interaction with Advanced Form Building
If four fields and one recipient are enough, Magento’s free Contact Us form does the job. If you need more fields or routing by subject, WebForms Suite lets you build the form in the admin and put it on /contact/ without code.
It costs €199 for Magento Open Source or €499 for Adobe Commerce, one-time, with 12 months of updates and support. There is no free version, so try the live demo first.
Key Takeaways
- Free option — the built-in form has four fields. You can change its recipient, email template and reCAPTCHA in the admin.
- Replacement from configuration — Replace Contact Page shows a WebForms form on
/contact/. - Routing by subject — the Contact Us template sends each subject to a store email address. A Contact field sends to addresses you enter.
- Spam protection — reCAPTCHA v2, v3 or Enterprise, hCaptcha or Turnstile, and a list of blocked email addresses.
- Custom registration — need more than a contact form? Build a custom registration form with approval workflows.
- Admin submission management — one Inbox for all forms, with filters and export to CSV or Excel XML.
Frequently Asked Questions About Magento 2 Contact Forms
Partly. In the admin you can change the recipient, edit the email template and turn on Google reCAPTCHA. To add fields, a file upload or a subject list, a developer has to change the form template in your theme, or you use an extension such as WebForms Suite.
No. The Contact Us form built into Magento is free, but WebForms Suite is paid: €199 one-time for Magento Open Source or €499 for Adobe Commerce, with 12 months of updates and support. There is no trial. You can try the live demo first and ask for a refund within 30 days.
For the built-in form, set Enable for Contact Us in Stores → Configuration → Security → Google reCAPTCHA Storefront. For a WebForms form, choose reCAPTCHA, hCaptcha or Turnstile in the WebForms Spam Protection settings, enter the keys and set Require CAPTCHA for.
In Marketing → Communications → Email Templates. Load the default Contact Form template, edit and save it, then select it in Stores → Configuration → General → Contacts. A WebForms form has its own emails on the form’s Notifications tab.
On most stores it is /contact/, linked from the footer. WebForms can show your form there with Replace Contact Page, or at an address of its own with a URL Key.
Yes. WebForms Suite includes integrations with HubSpot, Klaviyo, Mailchimp, Salesforce, Zapier, Zendesk, Zoho and Freshdesk, and it has REST and GraphQL APIs.
No code is needed. You edit the form as a draft, and visitors keep the published form until you click Publish Changes. The last 10 published versions are kept by default.



