Hi All,
I have just finished building a multi page form with chronoforms.
I have set up the email template etc, and the emails are being sent fine, however, it seems after so many characters the rest of the data is not being emailed? The end of the email message is not there apart from the IP address...
I have spent many hours on this form, and the full data needs to be sent after submission.
Does anyone know why this would be?
Also, I can fill out the form and upload a document, and this is emailed as an attachment, GREAT!, but then I fill out the form again, without an uploaded document, and the doc from the previous form gets emailed to me when it should not have an attachment etc? Why is this? I dont want other people docs being sent with the wrong form?
Any ideas?
Thanks!
I have just finished building a multi page form with chronoforms.
I have set up the email template etc, and the emails are being sent fine, however, it seems after so many characters the rest of the data is not being emailed? The end of the email message is not there apart from the IP address...
I have spent many hours on this form, and the full data needs to be sent after submission.
Does anyone know why this would be?
Also, I can fill out the form and upload a document, and this is emailed as an attachment, GREAT!, but then I fill out the form again, without an uploaded document, and the doc from the previous form gets emailed to me when it should not have an attachment etc? Why is this? I dont want other people docs being sent with the wrong form?
Any ideas?
Thanks!
Hi indigo,
There is no limit in ChronoForms to the length of an email message - or of a form textarea. Hard to say any more without seeing the form output.
There's no reason for documents to be reattached unless perhaps the file names are being confused. What do you have on the File Uploads tab?
Bob
There is no limit in ChronoForms to the length of an email message - or of a form textarea. Hard to say any more without seeing the form output.
There's no reason for documents to be reattached unless perhaps the file names are being confused. What do you have on the File Uploads tab?
Bob
Thanks for the help GreyHead!
The file upload is only enabled on the child form.
Heres the screenshot:

Is that what you meant?
Also, ive done it so the child forms update the database table row on each submit. Would this cause an issue?
If I dont upload an attachment in the form, the form_3 field stays blank in the db, so how does the email figure out the attachment to be sent? I thought it would the have pulled the attachment name from the db table?
The file upload is only enabled on the child form.
Heres the screenshot:

Is that what you meant?
Also, ive done it so the child forms update the database table row on each submit. Would this cause an issue?
If I dont upload an attachment in the form, the form_3 field stays blank in the db, so how does the email figure out the attachment to be sent? I thought it would the have pulled the attachment name from the db table?
Hi indigo,
Yes that's it. and all looks OK. I had wondered if you might be getting duplicate file names but the date string in there should prevent that.
Like you I'm a bit baffled by this. The email attachments array isn't even pulled from the database. It's created from the uploaded files when they are relocated into the uploads folder :-(
I'll scratch my head some more.
Bob
Yes that's it. and all looks OK. I had wondered if you might be getting duplicate file names but the date string in there should prevent that.
Like you I'm a bit baffled by this. The email attachments array isn't even pulled from the database. It's created from the uploaded files when they are relocated into the uploads folder :-(
I'll scratch my head some more.
Bob
Thanks Bob,
Ill keep trying and see if I can figure anything out.
Also, if you can think of anything that might be causing the the problem with the email data, that would be great 🙂
Heres an example of what happens. This is only half the form data.
Excuse the dummy content lol
Ill keep trying and see if I can figure anything out.
Also, if you can think of anything that might be causing the the problem with the email data, that would be great 🙂
Heres an example of what happens. This is only half the form data.
There has been a submission through the Course Enrolment Form on the website.
Details are as follows:
ID: 144
Personal Details
Name: FirstName FamilyName
English Name: EnglishName
DOB: DOB
Sex: Female
Nationality: Nationality
Passport Number: PassportNo
City: City
Country: Country
Phone: 123456789
Email: example@example.com
Home Address:
HomeAddress
Emergency Contact:
EmergencyContact
Course Information
Course: General English
Start Date: 12/12/2009
Course Type: Full Time
Duration: 12 weeks
English Level: Elementary
Homestay Details
Checkin Date: Homestay_Checkin
Duration: Homestay_Duration
Smoker: No
Vegetarian: No
Pets: No
Children: No
Accommodation Details
Type: Accommodation_Type
Address:
Accommodation_Address
Phone: Acco Submitted by 121.73.14.77
Excuse the dummy content lol
Hi indigo,
Is the form on-line. Then please turn debug on and pm or email me the url.
Bob
Is the form on-line. Then please turn debug on and pm or email me the url.
Bob
Hi all,
Just a thought; isn't there some option in recent CF to re-use the current instance of the form instead of starting fresh? (on a mobile client as usual, so can't check myself atm). If so, the attachments-array could probably not be emptied if the instance is re-used.
Just a thought..
/Fredrik
Just a thought; isn't there some option in recent CF to re-use the current instance of the form instead of starting fresh? (on a mobile client as usual, so can't check myself atm). If so, the attachments-array could probably not be emptied if the instance is re-used.
Just a thought..
/Fredrik
Hi Fredrik,
I have the "Renew Form Instance On Submit" set to "New Instance"?
Is that what you were meaning?
Thanks
I have the "Renew Form Instance On Submit" set to "New Instance"?
Is that what you were meaning?
Thanks
Hi Indigo,
Yup, that's the one I was thinking of.. Guess we can rule that out then.
Actually, as I read the code now, I'm not sure changing that setting has any real effect on the Form whatsoever.
I did notice one thing though.. When using the multiform plugin with your form, the attachments-array is saved and restored from the session storage. However, this session storage is never cleared upon successful submission of the completed form. This is most likely what's causing your issues. On the bright side though, uploaded files will only be re-sent within the session, atleast restricting the problem (two users would not "cross" their files unless they're using the same computer shortly after one another). Still qualifies as a bug IMHO.
I have no ideas regarding the length-limit sofar though..
/Fredrik
Yup, that's the one I was thinking of.. Guess we can rule that out then.
Actually, as I read the code now, I'm not sure changing that setting has any real effect on the Form whatsoever.
I did notice one thing though.. When using the multiform plugin with your form, the attachments-array is saved and restored from the session storage. However, this session storage is never cleared upon successful submission of the completed form. This is most likely what's causing your issues. On the bright side though, uploaded files will only be re-sent within the session, atleast restricting the problem (two users would not "cross" their files unless they're using the same computer shortly after one another). Still qualifies as a bug IMHO.
I have no ideas regarding the length-limit sofar though..
/Fredrik
Hi both,
Hmmm . . . the session suggestion makes good sense to me :-(
Looking at the plugin code the data array is cleared on Step 0 - but the files array isn't.
Plese look around line 166 of the plugins/cf_multi_page.php file and add an extra line
Bob
Hmmm . . . the session suggestion makes good sense to me :-(
Looking at the plugin code the data array is cleared on Step 0 - but the files array isn't.
Plese look around line 166 of the plugins/cf_multi_page.php file and add an extra line
if ( $current_step == 0 ) {
$session->clear('chrono_formpages_data_'.$formname, md5('chrono'));
$session->clear('chrono_formpages_files_'.$formname, md5('chrono')); // add this line
$current_step = 1;
}
Bob
Hi Both,
Thank you very much!! 😀
That works a treat and makes a lot of sense!
Only one more problem left to fix now, the missing form data on the emails....
Any ideas on what may be causing this?
Thanks again for all the help!
Erin
Thank you very much!! 😀
That works a treat and makes a lot of sense!
Only one more problem left to fix now, the missing form data on the emails....
Any ideas on what may be causing this?
Thanks again for all the help!
Erin
Just an update for anyone else that may come across the same issue...
It was something in the email template html that seemed to be causing the issue.
I originally built the template through the wysiwyg editor. I rebuilt the html from hand instead and it seems to be working fine now. Not sure what it was that was causing it, but avoiding the editor seems to have fixed the problem.
Thanks to everyone for the help! I think this is a great addition to Joomla and I will be using this as my main form component for future projects.
It was something in the email template html that seemed to be causing the issue.
I originally built the template through the wysiwyg editor. I rebuilt the html from hand instead and it seems to be working fine now. Not sure what it was that was causing it, but avoiding the editor seems to have fixed the problem.
Thanks to everyone for the help! I think this is a great addition to Joomla and I will be using this as my main form component for future projects.
This topic is locked and no more replies can be posted.