My emails are mangled

How to fix mangled emails with array text in ChronoForms.

Overview

The issue occurs when using multi-form fields with empty labels in CFv5, causing PHP array syntax to appear in auto-generated emails.
Update to the latest version of ChronoForms where this bug has been fixed.

Answered
sa sactobob 21 Jan, 2015
Answer
I don't know if this is a bug or if I'm missing something since upgrading to latest V5. But a form I've been working on all day and finally finished to start testing the submit-to-email is sending me mangled emails. I have the email form set to auto. Here's a sample of the email:

Permanent Address 123 mocking bird lane
array ( 'text' => '', 'position' => 'left', )
array ( 'text' => '', 'position' => 'left', )
array ( 'text' => '', 'position' => 'left', )
Telephone Number
array ( 'text' => '', 'position' => 'left', )
Are you 18 years of age or older? 1

array ( 'text' => '', 'position' => 'top', )
If yes, who?

Position
Date Available
Desired Wage

The formatting is messed up and I don't know why "array ( 'text' => '', 'position' => 'left', )" is showing up in the message?
Gr GreyHead 21 Jan, 2015
Hi euoceo,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
sa sactobob 21 Jan, 2015
I noticed also, most of my custom fields (headings/etc) are not being added to the auto generated email, V4 does this fine. I'll have a debug shortly.
sa sactobob 21 Jan, 2015
Errors start at the first multiform field. I'll PM you with form url.
sa sactobob 22 Jan, 2015
Playing around with my form, the "array ( 'text' => '', 'position' => 'left', )" is getting put in on multiform fields that have an empty label. When I add label text, then the label is displayed. But of course this defeats the purpose of a multi-field item since the idea is to be able to put boxes like :"Name ____________ ______________ ___________" with multiple fields but one label. Seems like a bug to me?
Max_admin Max_admin 22 Jan, 2015
Hi euoceo,

This must be a bug then, please send me a form backup, or attach a demo form backup here so I can test this.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sa sactobob 22 Jan, 2015
I actually started a new test form, one multi-field item of:

Multi-Field ______________ _________________ ________________________

So very easy to create.

Here's what the auto email created, the start of the 2nd field is mangled.

<table>
<tr><td>Multi-Field1</td><td>{text1}</td></tr>
<tr><td>array (
'text' => '',
'position' => 'left',
)</td><td>{text2}</td></tr>
<tr><td>array (
'text' => '',
'position' => 'left',
)</td><td>{text3}</td></tr>
</table>
Max_admin Max_admin 23 Jan, 2015
1 Likes
Thank you very much, I have just fixed this and it should be available in the next update, which is supposed to be ready this weekend!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sa sactobob 23 Jan, 2015
Whoops, hit the "best answer" button for my question, not the one I wanted. Don't see a way that I can fix that, Still getting used to this board, would be nice if the OP could edit their posts for corrections/typoes? Thanks again.
Max_admin Max_admin 25 Jan, 2015
Not a big problem!🙂

We have post editing disabled because sometimes spam bots use this to post spam.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.