Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Contact Enhanced is a contact component manager created to replace Joomla! core contacts component and add lots of advantages and new features (see Features ) and it offers many plugins and modules for several different purposes,
Product page | Documentation Page

Modify email output

14 years 4 months ago #1775 by interiority
Thanks for a great component!
I need to modify the email output for my form. I have already used the patch you created here: ideal.fok.com.br/component/opt...d,4/catid,11/func,view/id,899/

which helps alot. But what I also need is for items to be displayed on a new line if multiple items are selected with checkboxes.
eg. if you select the checkboxes for Firefox, IE, and Google Chrome in the form, in the email output I would like to see the display something like:

Browsers used =
Firefox
IE
Google Chrome

Is this possible?

And finally, it is possible to make it required that at least one checkbox is selected? I have selected "required" in the parameters but it still allows the form to be submitted if no checkboxes are selected.

Thank you!

Please Log in or Create an account to join the conversation.

14 years 4 months ago #1776 by douglas
Dear Interiority,

I'm planing to change the way Contact Enhanced deals with the output.

I'll tell you what to change, so it might help others.

Look for this line:
}else if(is_array($cf->uservalue) AND $cf->type == 'checkbox'){
				$cf->uservalue	= implode(",",$cf->uservalue);
			}
and change to:
}else if(is_array($cf->uservalue) AND $cf->type == 'checkbox'){
				$cf->uservalue	= implode("\n",$cf->uservalue);
			}
The validation for the Checkbox should already work. Can you please send me a URL so I can take a look at it?

Kind regards,

Please Log in or Create an account to join the conversation.

14 years 4 months ago #1779 by interiority
I'm still getting the output on different lines. Will send you a support ticket with the URL and login details. Thanks.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. 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.
Feedback