How to Add Custom Fields to the Joomla Contact Form

How to Add Custom Fields to the Joomla Contact Form

This tutorial explains how to add extra fields to Joomla's built-in contact form using Custom Fields. The process uses Joomla core features, requires no third-party extension, and is designed to remain compatible with future updates.

Step 1: Create a custom field

Start by creating a custom List field that lets site visitors choose the type of enquiry they are submitting.

  1. Go to Components → Contacts → Fields.
  2. In the context selector, choose Mail.
  3. Select New.
  4. On the General tab, set a title such as Enquiry type, choose List, decide whether it is required, and add text/value pairs such as Technical Support, Sales, and Other.

Step 2: Review field permissions

The original guide notes that custom fields may not accept values from public visitors unless permissions are configured. Edit the field, open the Permissions tab, find Edit Custom Field Value, and review the setting for the Public group. Only grant the permission if it is appropriate for your site and the field data you collect.

Step 3: Choose where the field appears

In the field's Options tab, choose a position such as After Display or Before Display to control its placement in the contact form.

Step 4: Include the data in email

Review the Joomla mail template used for the contact form under System → Mail Templates. Check whether the message body includes the custom-field placeholder supported by your Joomla version and template.

Common issues

  • The field is missing: Confirm that the context is set to Mail.
  • The email has no value: Review field permissions and the mail template.
  • The field is in the wrong place: A template override may be needed for precise placement.

Quick summary

  1. Use the Mail context.
  2. Review Public permissions carefully.
  3. Check the contact-form mail template.

Share this knowledge:

Direct Engineering

Have a Joomla project or technical challenge in mind?

From architectural diagnosis to production deployment, directly with the engineer.