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
The three new fields are displayed respecting the Display settings
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
| Labels |
Added:
No Code Attached Yet
|
||
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.