chronoform email template form data not showing in email

merocastle 18 Mar, 2013
hello there,

I have setup gmail smtp server and I have a form that does not post to the database but just sends an email with the form data values. The email is sent but I dont get the submitted form data values.

A sample of The email template is shown below:
1. Name of proposer:
{text_0}
Business/Occupation:
{text_1}
Address:
{text_2}


Here, text_0 is the name as well as the id of the text field in the form.

In the email I get this value.
Name of proposer:0
Business/Occupation:0

Address:0

The form is connected to a database table and the setup is to send email before saving data. The problem is that the database table attached to this form does not have the fields in the form. In other words, the data is not saved in the database though a database table is attached to this form. However, a new record is created with null fields in the table everytime the form is submitted. Is this what is causing my values to not appear in the email.
Please help me.
GreyHead 18 Mar, 2013
Hi merocastle,

I don't think that the DB Save is causing the email problems.

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.

Bob
merocastle 18 Mar, 2013
Hi Bob,
I am new to Joomla.In fact I am just editing this form. I did not create it.
I have turned the debug on. But I cannot find the debug action to drag to the onsubmit event.

If you can post the code for debug action or tell me where to find it, that would be very helpful

from what I know so far.

can i just add

print_r($this->data);


just guessing!!!
merocastle 18 Mar, 2013
hello bob,

I just did a print_r($form->data) on the onSubmit before sending email and the result was this:
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [text_0] => shikhar subedi [text_1] => student [text_2] => maitidevi-ktm [text_3] => 34343434 [text_4] => merocastle@gmail.com [text_5] => [text_6] => [text_7] => [text_8] => [text_9] => [text_10] => [text_11] => [text_12] => [text_13] => [text_14] => [text_15] => [text_16] => [text_17] => [text_18] => [text_19] => [text_20] => [text_21] => [text_22] => [text_23] => [text_24] => [text_25] => [text_26] => [text_27] => [text_28] => [text_29] => [text_30] => [text_31] => [button_49] => Submit [11934b176ca39b65016c72f637ef48f8] => 1 [1cf1] => 407733b3623f8ba015f381ffaf84a40a [chronoformname] => housebreaking )
$_FILES Array: Array ( )
Redirect URL set
Form passed the plugins step (if enabled) OK


Here, I just filled only the mandatory fields. the [text_number] fields are textfields in the form.
One more thing, when sending the email, there is an email delivery failure for the email. I have setup just one email which is mine. I receive the email, but the email delivery failure is for an email I removed earlier.
GreyHead 18 Mar, 2013
Hi merocastle,

Ah, OK, you are using the older ChronoForms v3 so there is no Debugger action.

That said there is no obvious reason why the email wouldn't show the values.

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
GreyHead 19 Mar, 2013
Hi merocastle,

Please test again now. *All* of the form plugins were turned on in the Plugins tab (green bars showing) and I guess that there was some conflict that crashed the system. I've turned them all off and checked that the form submitted OK and showed the expected Debug results.

I've turned Debug back off and commented out your dump() lines.

If you need any of the plugins activated then turn them on one at a time and check the configuration and form submission.

Lastly, the database save is currently turned off (the records you saw were probably being created by one of the plugins) you'll need to turn that on if you want records saved.

Bob
merocastle 19 Mar, 2013
thanks a lot bob...


It works now....
adrandom 17 Sep, 2013
Joomla 2.5.14 / Chronoforms 4.0 RC3.5.1

Hi, this is my first post/question, and it is a last resort as I've reached the limit of my (limited) detective skills. It concerns this topic so in the first instance I'm going to use this thread... I'm sure it's something basic like the validation (have checked here:http://www.chronoengine.com/faqs/2549-some-email-data-is-missing.html) but not obvious to me.

I have a multi-stage form, in the testing phase (waiting for this and payment system to be finished) which works as follows: intro/instructions - input - confirmation - submit/send email - thankyou, and it loses the field values collected at the confirmation stage in curly brackets (i.e. the confirmation stage does collect the field values in curly brackets but this is not then picked up by the next submit/send email stage). Here's the debug info on submit - I've limited the email to the {name} field for testing purposes, and the email should be sent to {email} which is the email inputted by the user...

Data Array: 
Array
(
    [option] => com_chronoforms
    [chronoform] => registration_en
    [event] => Submit 2
    [cf_sid] => 16b0eb4f14d0e2c2c761bb12891f2c86
    [Itemid] => 
    [lang] => en
    [confirmation_page] => _confirm
    [language] => en-GB
    [IPADDRESS] => 87.217.10.30
)
Validation Errors: 
Array
(
)
Debug Data
Email errors
No valid To Email address found
Email info
Email send stopped.
From: (Admin) info@www.shm.edu
To:
Subject: Registration
Email body
 {name}


Many thanks in advance!
GreyHead 24 Sep, 2013
Hi adrandom,

Do you have a Multi Page action or a Session to Data action in the last On Submit event where the email is?

Bob
adrandom 28 Sep, 2013
Hi Bob

I do indeed have a Session to Data action in the last On Submit event where the email is... I attach a screengrab FYI.

I didn't have my profile set to receive email notifications hence not seeing this until now...

Thanks

Adam
GreyHead 30 Sep, 2013
Hi Adam,

I don't see anything obviously wrong there except that the data is missing. I'm not clear what the On Submit event does - is that displaying a second page?

Personally I'd put the Data to Session, Handle Arrays and Email [GH] actions after the Confirmation page where you have the Debugger action.

I can only suggest that you add more Debugger actions to track down exactly what is happening and where the data gets lost.

Bob
adrandom 12 Oct, 2013
Hi Bob

something unexpected came up that's kept me away from this problem...but here I am back on it.

The form works (or should work!) as follows:

[list]
  • First submit: go from intro page to form

  • Second submit: user checks that form data he or she wants to submit is correct

  • Third submit (confirmation page): user submits confirmed form and a copy is automatically sent to admin and user
  • [/list]

    I notice that you mention Data to Session, not Session to Data as I have... Is this correct or did you mean Session to Data?

    The data is getting to the confirmation page and disappearing at the Email action... I'd really appreciate it if you could take a look at the backend.
    GreyHead 13 Oct, 2013
    Hi arandom,

    The Data to Session action takes the form data and saves it in the Joomla! User session; the Session to Data action gets the data back again and makes it available for use in the form event.

    Does that help?

    Bob
    adrandom 16 Oct, 2013
    Hi Bob

    I kind of gathered that. You'll be glad to know that we found the problem. The last submit stage, where we were losing the data, lacked a "multipage" event. It now works! At last! 😀 I attach a screengrab FYI.

    Thanks for the support

    Adam
    slapshot422 31 Jan, 2014
    Hi Bob, I'm having pretty much the same issue as this thread suggests, I'm putting information into each form field, but only certain information is showing in the submitted test email. I ran a debugger, and it says I have a data array error? Also, I have a number of check boxes, that are showing up in the test email, even when I'm not checking them all when I send a test form/email.

    How can I go about fixing this? I've attached a text file showing the debug report, as well as what comes up in the test email when it's sent


    Any insight into this, and suggestions on a fix, would be greatly appreciated

    Thanks again in advance

    ~~Bob Pettine
    GreyHead 31 Jan, 2014
    Hi slapshot422,

    There's no attachment to your post. In this forum you have to upload the file before submitting the post.

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

    Bob
    This topic is locked and no more replies can be posted.