Contact Enhanced Documentation



The Contact Enhanced Custom Code plugin is a flexible plugin that allows you to write custom PHP code in order to change nearly any Contact Enhanced form behavior.


  • Have already installed the Contact Enhanced PRO package:
  • Some PHP knowledge;

Basic Usage

Write your PHP Custom Code and upload to the paths provided in the basic options. The PHP file will appear in the dropdown when it is uploaded to the proper path.

Detailed Instructions


To utilize the CustomCode Plugin to append the Contact Name to the Subject line of the email that is sent to the admin recipient of the form follow these simple instructions;

1. Go to Extensions Plugin Manager;

2. Either use the filter and enter or click on Contact Enhanced - Custom Code from the Plugin Manager list;

3. Enable the Plugin under Details;

4. Click on Basic Options and select Choose from the settings for onSubmitContact the prepend-contact-name-to-subject.php; This example was already added to the plugin

5. Click Save & Close;

6. Test from the front-end to verify working as desired;

If validation fails on either the onSubmitContact or onValidateContact, the script should assign the $exception to the $returns variable, then Contact Enhanced will return a validation error (you have to throw an Exception).

Tutorial written by Jennifer Gress <>

Recommend to a friend

Copyright © 2018 All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.