No Code Attached Yet
avatar brianteeman
brianteeman
16 Jan 2026

Steps to reproduce the issue

Create a field to be displayed on a contact form (set the Mail) context BEFORE creating the new field
In the options tab for the field Automatic Display select After Title
In the permissions tab set Edit Custom Field Value to allowed for the public user

Repeat for two more fields with
Automatic Display select Before Display Content
Automatic Display select After Display Content

Display the contact form in the front end of the site

Expected result

The three new fields are displayed respecting the Display settings

Actual result

All field are displayed at the end of the form as there is no logic in the default_form file https://github.com/joomla/joomla-cms/blob/5.4-dev/components/com_contact/tmpl/contact/default_form.php to control where the fields are injected

System information (as much as possible)

Additional comments

avatar brianteeman brianteeman - open - 16 Jan 2026
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jan 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Jan 2026
avatar sathwikre
sathwikre - comment - 2 Feb 2026

I’ve opened a pull request that addresses this issue by adding logic to
render contact custom fields based on their configured display positions.

PR: #46814

Tested locally using the steps described in the issue and confirmed that
fields render correctly for After Title, Before Display Content, and
After Display Content.

avatar brianteeman
brianteeman - comment - 10 Mar 2026

can someone remove the link to the associated PR as that has been closed

avatar piyusshkumar
piyusshkumar - comment - 15 Mar 2026

@brianteeman while debugging this issue. This raises two possible situation:

  1. If the expected behaviour is Mail fields should not follow the "Automatic Display" setting, if that so why the display position option is available for the fields created with the Mail context.
  2. If the expected behaviour is that Mail field should move according to the automatic display selection , then the necessary logic does not appear to exist.

Can u please clarify which behaviour is expected?

Add a Comment

Login with GitHub to post a comment