You are here: Start page Support Forum

Ideal - Custom Software Development

Welcome, Guest
Please Login or Register.    Lost Password?

Modify email output
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Modify email output
#1775
Modify email output 2 Months, 1 Week ago Karma: 0  
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/option,com_ku...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!
interiority (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1776
Re:Modify email output 2 Months, 1 Week ago Karma: 10  
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:
Code:

}else if(is_array($cf->uservalue) AND $cf->type == 'checkbox'){
$cf->uservalue = implode(",",$cf->uservalue);
}

and change to:
Code:

}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,
douglas (Admin)
I'm Sabbatarian, I'm not here on the Holy Sabbath
Moderator
Posts: 1021
graph
User Online Now Click here to see the profile of this user
Gender: Male Location: Joinville - Santa Catarina - Brazil
Douglas Machado
Need a nice way to display your content items or FAQs? Get MooFAQ!
The administrator has disabled public write access.
 
#1779
Re:Modify email output 2 Months, 1 Week ago Karma: 0  
I'm still getting the output on different lines. Will send you a support ticket with the URL and login details. Thanks.
interiority (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: douglas