arrow_back_ios Blog How to Add Custom Fields to Magento 2 Registration Form

How to Add Custom Fields to Magento 2 Registration Form

calendar_today April 10, 2026 visibility 50 views folder_open Magento 2 Tutorials label WebForms, Form Builder, B2B E-commerce, Customization

Custom registration form fields in Magento 2 let you collect company name, tax ID, phone number, business type, and any other data during customer signup. MageMe WebForms Suite replaces the default registration form — add custom fields from admin, set up conditional logic, collect file uploads, and auto-create customer accounts on submission. Works with Luma, Breeze, and Hyvä on Magento 2.3.7+.

Magento 2 custom registration form with custom fields in admin panel

format_list_bulleted Table of Contents

person_add

Why Custom Registration Fields Matter

The default Magento 2 registration form collects five fields: first name, last name, email, password, and password confirmation. That's enough for a simple B2C store, but it falls short the moment you need additional information at signup.

business B2B & Wholesale

Company name, tax/VAT ID, business license, annual revenue, number of employees. Required for dealer approval workflows and tiered pricing.

verified_user Compliance & KYC

ID document uploads, terms acceptance checkboxes, age verification, GDPR consent fields. Required for regulated industries and government tenders.

route Routing & Segmentation

Industry dropdown, preferred contact method, referral source. Route new registrations to different sales reps or customer groups based on form answers.

block

What the Default Magento 2 Registration Form Can't Do

Before diving into the solution, here's what you're working against with the built-in registration form:

Capability Default Form WebForms
Custom text/dropdown/checkbox fields Requires PHP code Admin panel — no code
File/document upload Not supported Built-in dropzone
Conditional logic (show/hide fields) Not supported Suite only
Email routing by field value Not supported Suite (Lite for forms only)
CAPTCHA / spam protection reCAPTCHA only reCAPTCHA + hCaptcha + Turnstile
Multi-step form with progress bar Not supported Suite only

Adding custom fields to the default form requires creating a setup_patch for each attribute, writing a plugin for the registration controller, and modifying the .phtml template. Every Magento upgrade risks breaking these customizations. WebForms avoids all of this — fields are configured in the admin panel without writing code.

Build a custom registration form
Auto-create customer accounts, map fields to attributes, assign customer groups. No coding.
integration_instructions

How to Create a Custom Registration Form in Magento 2

Follow these steps to replace the default registration form with a custom WebForms form. The entire setup takes about 15 minutes.

Step 1: Install WebForms Suite + Customer Registration

Add the MageMe Composer repository and install both packages from your Magento root directory:

composer config repositories.mageme composer https://repo.mageme.com
composer require mageme/module-webforms-3
composer require mageme/module-webforms-3-customer-registration
php bin/magento module:enable MageMe_Core MageMe_WebForms MageMe_WebFormsCustomerRegistration
php bin/magento setup:upgrade

Composer will prompt for your authentication key — find it in the Composer Repository section of your MageMe account.

Log out and back into the Magento admin, then activate your license at Stores → Configuration → MageMe Extensions → Licenses.

Note: Customer registration requires WebForms Suite + the Customer Registration add-on. The free WebForms Lite handles contact forms, surveys, and inquiries but cannot create customer accounts. See the full installation guide for details.

Step 2: Create the Registration Form

  1. Go to Content → WebForms → Manage Forms in the Magento admin
  2. Click Add New Form
  3. Set the form name to "Customer Registration" (or any name you prefer)
  4. Under General Settings, configure the success message and redirect URL (e.g., customer dashboard)
  5. Under Email Settings, set the notification recipients — the sales team, admin, or both

Step 3: Add Custom Fields

Click Add Field to start building your form. Common registration fields:

Basic Info
  • First Name / Last Name (Text)
  • Email Address (Email)
  • Phone Number (Text + validation)
  • Password (Password field)
Business Details
  • Company Name (Text)
  • Tax / VAT ID (Text)
  • Business Type (Dropdown)
  • Annual Revenue Range (Dropdown)
Documents & Consent
  • Business License (File Upload)
  • Terms & Conditions (Checkbox)
  • Newsletter Opt-in (Checkbox)
  • How Did You Hear About Us (Dropdown)
Magento 2 registration form field types: text, dropdown, date picker, file upload

Step 4: Configure CAPTCHA

Protect your registration form from bot signups. In the form's CAPTCHA tab, choose your preferred method: reCAPTCHA v2/v3, hCaptcha, or Cloudflare Turnstile. All three are supported in both Lite and Suite. See our spam protection guide for a detailed comparison.

Step 5: Place the Form on the Registration Page

You have several options for displaying the form:

  • CMS Widget: Add a WebForms widget to any CMS page or block. Navigate to Content → Widgets, create a new widget of type "WebForms", select your registration form, and assign it to the registration page layout.
  • Contact Us Replacement: In the form settings, enable "Use as Contact Form" to replace the default form on the contact page. For registration, create a dedicated CMS page instead.
  • Layout XML: Reference the form in your theme's layout XML to embed it on the customer registration page. See our embedding guide for all five methods.

Step 6: Set Up Email Notifications

Configure who receives registration notifications in the form's Email Settings tab. WebForms supports multiple recipients, CC/BCC, and different email templates per form. You can route registrations to different departments based on field values — for example, send wholesale applications to the sales team and retail signups to customer support.

handshake

B2B Registration: Approval Workflows & Dealer Applications

B2B and wholesale stores often need a registration process that goes beyond collecting information. Typical requirements include:

  • Manual approval: New wholesale accounts should not be active immediately (unlike a simple contact form). The sales team reviews the application, verifies the business license, and manually approves the account.
  • Customer group assignment: Route approved dealers to a "Wholesale" customer group with tiered pricing automatically.
  • Document collection: Require business license, resale certificate, or tax exemption documents as file uploads during registration.
  • Conditional fields: Show different fields based on business type — a distributor sees quantity commitments, a retailer sees store location fields. (Suite only)
Magento 2 customer registration approval workflow in admin

The Customer Registration add-on (included in WebForms Suite) connects form submissions directly to Magento's customer accounts. When a prospect submits the registration form, Suite automatically creates a customer account, assigns it to a customer group, and maps form fields to customer attributes — all without custom code.

Magento 2 custom registration form — automated customer group assignment
compare

WebForms Lite vs Suite for Registration Forms

Which version do you need? It depends on your registration requirements:

WebForms Lite
Free forever
  • 17 field types including file upload
  • reCAPTCHA, hCaptcha, Turnstile
  • Email notifications with routing
  • Popup and inline display
  • Embed on any CMS page

Best for: Contact forms, surveys, and inquiries. Does not support customer account creation or registration workflows.

Download Lite — Free
WebForms Suite
€189 one-time
  • Everything in Lite, plus:
  • 30+ field types, conditional logic
  • Customer Registration add-on
  • Auto-create customer accounts
  • Map fields to customer attributes
  • Multi-step forms with progress bar
  • 8 CRM integrations (Salesforce, HubSpot, etc.)

Best for: B2B registration with approval workflows, document collection, conditional fields, and CRM sync.

Get WebForms Suite
lightbulb

Key Takeaways

  • The default Magento 2 registration form only has 5 fixed fields — customizing it requires PHP development.
  • MageMe WebForms Suite lets you build custom registration forms from admin — no PHP coding needed.
  • WebForms Lite (free) is great for contact forms, surveys, and inquiries. Customer registration requires WebForms Suite.
  • WebForms Suite adds the Customer Registration add-on: auto-account creation, customer group assignment, conditional logic, and CRM integrations.
  • All CAPTCHA methods (reCAPTCHA, hCaptcha, Turnstile) are supported in both Lite and Suite to prevent bot registrations.

Frequently Asked Questions

person_add Can I add custom fields to the Magento 2 registration form without coding? expand_more

Yes. MageMe WebForms Suite provides a no-code form builder that lets you create a custom registration form with any fields you need — text inputs, dropdowns, checkboxes, file uploads, and more. The Customer Registration add-on (included in Suite) auto-creates customer accounts on submission.

manage_accounts Does WebForms automatically create Magento customer accounts? expand_more

Yes, but only in the Suite version. The Customer Registration add-on maps form fields to customer attributes, auto-creates accounts on submission, and can assign customers to specific customer groups. The Lite version collects form data but does not create customer accounts.

upload_file Can I require document uploads during registration? expand_more

Yes. Both Lite and Suite support file upload fields with drag-and-drop dropzone, file type validation, and size limits. You can require business licenses, resale certificates, or any other documents as part of registration.

palette Is WebForms compatible with Hyvä theme? expand_more

Yes. WebForms is fully compatible with Hyvä, Breeze (Swissup), and Luma themes. The Hyvä compatibility module is included at no extra cost.

compare How does this compare to dedicated registration field extensions? expand_more

Dedicated extensions add individual fields to the existing registration form. WebForms replaces the entire form with a custom-built one — you get a reusable form builder for contact forms, surveys, and more, instead of a single-purpose plugin.

Using WebForms? Share Your Experience!