Magento 2 Contact Form vs Custom Form Builder: Which Do You Need?

What the built-in Magento 2 contact form does, how to add custom fields, and when a form builder extension is the better choice. With a side-by-side comparison.

Magento 2 Contact Form vs Custom Form Builder: Which Do You Need?

Every Magento 2 store comes with a Contact Us page at /contact. It works out of the box, and for some stores it is all they need. But as soon as you want an extra field, a second form or a record of what customers sent, you reach its limits. This article compares Magento's built-in contact form with Custom Form Builder for Magento 2, shows how to customise the default form, and helps you decide which one your store needs.

Short answer: keep the built-in Magento 2 contact form if one form with name, email, phone and message is enough and email is the only place you need the messages. Choose a form builder when you need custom fields, more than one form, file uploads, forms on product or CMS pages, or submissions stored and managed in the Magento admin.

What Magento's built-in contact form does

The Magento_Contact module adds one form with four fields: Name, Email, Phone Number and What's on your mind?. When a customer submits it, Magento emails the message to one address. Logged-in customers get their name and email filled in.

The default Magento 2 contact form with Name, Email, Phone Number and What's on your mind fields

You configure it in Stores > Configuration > General > Contacts:

  • Enable Contact Us: turns the page and form on or off.
  • Send Emails To: the one address that receives every message.
  • Email Sender and Email Template: who the email comes from and how it looks.

For spam protection, Magento's own reCAPTCHA can be switched on for the Contact Us form under Stores > Configuration > Security > Google reCAPTCHA Storefront.

The limits of the default contact form

  • Fixed fields. You cannot add an order number, a topic, a dropdown or a checkbox from the admin.
  • One form only. There is no second form for quotes, returns or product questions.
  • One page only. The form lives on /contact. It cannot be added to a product page, and placing it in another page takes layout or template work.
  • No stored submissions. Magento Open Source sends the message by email and keeps no copy in the admin. If the email is lost, filtered as spam or deleted, the message is gone, and there is no grid to search, filter or export.
  • One recipient. Every message goes to the same address, whatever it is about.
  • No file uploads, no conditional logic, no consent checkbox and no copy for the customer.

How to add custom fields to the Magento 2 contact form

Adding a field to the default contact form is a developer task. In a custom module or your theme you need to:

  1. Override the Magento_Contact::form.phtml template and add the new input.
  2. Change the contact email template so the new value appears in the email.
  3. Add server-side validation for the field, with a plugin on the contact controller or mail service, because browser validation alone is easy to bypass.
  4. Repeat the work for every new field, and check the overrides after each Magento upgrade.

That is reasonable for one extra field. For several fields, several forms, or anything that needs to be stored, it becomes a project of its own.

What a form builder adds

With Custom Form Builder, a contact form is built in the admin like any other form: drag in the fields you need, set their widths for desktop, tablet and mobile, and save.

Custom contact form built with Custom Form Builder for Magento 2, with first and last name side by side and reCAPTCHA
  • 26 field types, including selectbox, radio buttons, date, phone, file and image upload, address, star rating, consent and hidden fields.
  • Conditional recipients: email sales@ when the topic is Sales and support@ when it is an order question, with up to 20 rules per form.
  • Submissions in the admin: Form Builder > Submissions lists every message with statuses (New, Read, Replied, Spam), assignment to a colleague, internal notes and CSV or Excel export.
  • A copy to the customer and editable email templates, sent right away or through Magento's message queue.
  • Forms anywhere: on their own page, in CMS pages and blocks with a widget, and on product pages as an enquiry button or tab.
  • Spam protection: honeypot, minimum fill-in time, a limit of submissions per visitor per hour and Magento's own Google reCAPTCHA.
  • Privacy tools: hashed or truncated IP addresses, retention per form, anonymizing and a right-to-erasure command.
Form Builder submissions grid in the Magento 2 admin with the form's answers as columns

Side-by-side comparison

Feature Built-in contact form Custom Form Builder
Fields4 fixed fields26 field types, any number of fields
Number of forms1Unlimited
Where it shows/contact pageOwn page, CMS pages and blocks, product pages, layout XML
Submissions stored in adminNo, email onlyYes, with statuses, notes and export
Email recipientsOne addressPer form, plus conditional recipients
Copy to customerNoYes
File uploadsNoYes, stored outside the public folder
Conditional logic and multi-stepNoYes
Spam protectionreCAPTCHAreCAPTCHA, honeypot, minimum time, rate limit
Consent and retentionNoConsent field with version, retention per form, erasure command
CostIncluded in MagentoPaid extension

Which should you use?

The built-in form is enough when you get a handful of messages a week, one person answers them all, and email is your only system.

Use a form builder when any of these is true:

  • You need fields Magento does not have, such as an order number, a topic or an attachment.
  • Different teams answer different kinds of questions.
  • You want more forms: quotes, product enquiries, returns, surveys or registrations (see 5 forms every Magento store should have).
  • You need a record of every message in Magento, not only in someone's inbox.
  • You need to show consent, keep data for a set time and delete it on request (see GDPR-ready forms in Magento 2).

How to replace the default contact page

  1. Build your new contact form in Form Builder > Forms, with the code contact-us, so it is at /forms/contact-us.
  2. Update the links in your header, footer and CMS pages to the new address, or place the form in a CMS page with the Magexweb Form widget.
  3. Add a permanent (301) redirect from contact to the new page in Marketing > SEO & Search > URL Rewrites, so old links and bookmarks still work.
  4. Optionally set Enable Contact Us to No once nothing links to the old form.

The user guide has the full setup.

Frequently asked questions

Where are Magento 2 contact form messages stored?

In Magento Open Source they are not stored in the database. The message is only sent by email to the address in Stores > Configuration > General > Contacts.

How do I change where the Magento contact form sends emails?

Go to Stores > Configuration > General > Contacts > Email Options and change Send Emails To. The built-in form supports one address.

Can I add the Magento contact form to a CMS page?

Not from the admin without development work. With Custom Form Builder you insert any form into a CMS page or block with the Magexweb Form widget.

Does a form builder slow down my store?

Custom Form Builder forms work with Magento's full page cache and Varnish, and the extension loads no external scripts except Google reCAPTCHA when you enable it and Google Maps when you set up address autocomplete.

0 Comments

No comments yet. Be the first to comment.

Leave a Comment

Your email is never published.

Keep reading.

More guides from the Magexweb blog.

All articles

Rather we handle it?

Upgrades, security patches and platform moves are what we do every day. Tell us what your site needs, and we will reply with questions and next steps.

  • Email info@magexweb.com
  • Phone +91 99092 71288
  • Hours Mon–Fri, 10:00 AM to 8:00 PM IST
  • Office D-1002, Jasmin Green 1, Near Vaishnodevi Circle, Ahmedabad 382421, India

  • Free consultation
  • NDA available
  • Reply by email