Email information is incomplete.

meggio 12 Sep, 2014
The information generated my my email code is coming through incomplete.
For instance, sometimes just the Name field is present, sometimes the email address, and sometimes it's the zip code.

The code for the email is this:

<table>
<tr><td>Name</td><td>{name}</td></tr>
<tr><td>Email</td><td>{email}</td></tr>
<tr><td>ZIp Code</td><td>{zip}</td></tr>
<tr><td>Would you like to subscribe to our e-newsletter?</td><td>{subscribe}</td></tr>
<tr><td>Comments</td><td>{message}</td></tr>
</table>

This is a new development, the emails have been working fine up till recently -- not sure when the client last updated Joomla or Chronoforms.
GreyHead 12 Sep, 2014
HI meggio,

That sounds as though you don't have validation or it isn't working.

Bob
meggio 12 Sep, 2014
Well, when I post a test message, I fill in all the fields. Validation shouldn't affect that.
GreyHead 12 Sep, 2014
Hi meggio,

ChronoForms is very consistent, it will either include data or not include it, it is very rare that it will sometimes include it and sometimes leave it out.

What do you see when you add a DeBugger action and submit the form?
meggio 12 Sep, 2014
Under errors, I got
Array
(
)
and beneath that, there's this:
Array
(
    [3] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:ryan@acandleinthenight.com, meg@megmccarthy.com
                    [2] => Subject:From the web site
                    [3] => From name:Web visitor
                    [4] => From email:ryan@acandleinthenight.com
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Body:
<table>
<tr><td>Name</td><td></td></tr>
<tr><td>Email</td><td>meg@megmccarthy.com</td></tr>
<tr><td>ZIp Code</td><td>05302</td></tr>
<tr><td>Would you like to subscribe to our e-newsletter?</td><td>0</td></tr>
<tr><td>Comments</td><td></td></tr>
</table><br /><br />IP: 209.198.66.5
                )

        )

)
GreyHead 12 Sep, 2014
HI meggio,

And the rest of the Debugger output please, I need to see the Data array at the beginning.

Bob
meggio 18 Sep, 2014
I'm posting the array below, but I need to point out that I've looked at the email coming from the site since early Sep (when the client brought my attention to the problem and I added my email address to recieve). There is no consistency. Sometimes it's the name that's missing, or the email address, or the zipcode, or the comment.

Here's the array:

Array
(
[chronoform] => ContactDesign
[event] => submit
[tvout] => ajax
[name] =>
[email] => meg@designforeverything.com
[zip] => 05302
[subscribe] => 0
[message] =>
[button6] => Submit
[ip_address] => 207.136.213.243
)
GreyHead 20 Sep, 2014
Hi meggio,

I took a look at the form and the only validation I can see is for the Email field and that is working correctly- if I enter a non-email string I get an error message.

None of the inputs are validated as required so they can be submitted empty.

Bob

PS As a double check I suggest that you add Server-side validation on key inputs as well as the client side validation.
This topic is locked and no more replies can be posted.