ChronoForms 4 - keep on getting Empty email

wetback 22 Mar, 2011
* Edit post
* Delete post
* Report this post
* Reply with quote

ChrnoForms v4 - keep on getting Empty email

Postby wetback Β» Tue Mar 22, 2011 5:00 am
Hello!!

I just love how practical Chronoforms is and I like the v4 better than v3... how ever I'm a new user and I can't make it work, I already went trough tutorials and look at some forums issues but no luck.

My problem is: I have the form already linked to my website and it looks nice, I also added an email and it seams that I did it right, but when I test the form to see if works I get an empty email with none of the data included on the form...😟 I can't find the problem...

Can somebody please help?

Thanx in advance...


Javier.
GreyHead 22 Mar, 2011
Hi Javier,

Have you added an Email template - unlike CFv3.2 ve does not create an automatic template for you.

Click the spanner to open the Email Setup configuration, then the 'Template' tab.

Bob
wetback 22 Mar, 2011
Hi!

Thanx for the quick response! No I have mot made a template; how do I do that? I don't know which fields to add

Thanx again.

Javier.
wetback 22 Mar, 2011
Hello again!

Check this out.. this is what I did:

I went to components/ form manager/ wizard edit/ actions/ events/ onload I clicked on "email" then clicked on the template tab and added:

{input_text_0}
{input_text_7}
{input_text_1}
{input_text_2}

and "save" file but when i go back to the template tab all the code is gone...😟

What am I doing wrong?

Thanx again...

Javier.
GreyHead 22 Mar, 2011
Hi Javier,

I just checked and this works OK for me. Are you clicking the the little 'Apply' tab at the top right corner of the modal window? If you don't do this then the Event isn't saved.

Bob

PS I did find that I can only have one Email event either in OnLoad or OnSubmit; normally you'd want it OnSubmit. I think that his is probably a bug.
wetback 22 Mar, 2011
hey my Man!!

well...U r awesome!! i got some info to my email already... just by changing the email to the "on submit"...but one thing not working, the "upload file" doesn't come through, is there any more configuring I need to do for the "upload file" to work properly outside of just adding the field?

Thanx for your time and help!!

Javier.
GreyHead 22 Mar, 2011
Hi Javier,

>> I've moved this thread to the ChronoForms 4 forum

You need to have an Upload Files Action in the On Submit Event box.

Bob

PS There is no option to specify the upload path in the standard Action; If you need to do that I've posted a modified one here.
wetback 22 Mar, 2011
hi Bob!

thanx for all ur help, like I said I got the regular info going to my email OK I uploaded the modified file to the path you provided and and added the new "upload file" option to the "on load" but when i go to test it no file uploads... can u please help?

Thanx Bob!
GreyHead 22 Mar, 2011
Hi wetback,

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

Bob
GreyHead 22 Mar, 2011
Hi wetback,

Emails are working OK now.

You had used a Dynamic From Email :-(

I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.

Bob
wetback 22 Mar, 2011
Hey Bob!

mmm... i get the emails Ok, but I don't get the uploaded file... I also notice when I PM you you have a "upload file" button next to the "browse" button and I don't have one... is this because I'm doing something wrong?

I just tried the for just now and i keep on getting the emails but no uploaded files😟

Thanx for all ur help Bob!!


Javier.
GreyHead 22 Mar, 2011
Hi Javier,

The current version of the Show HTML action doesn't automaticaly add the enctype='multipart/form-data' attribute to the form tag. You need to add this manually by going to the Forms Manager, clicking the 'Name' link and pasting the attribute into the Form Tag Attachment box.

Please see if that fixes the problem.

Bob
wetback 22 Mar, 2011
Hi Bob!

man thanx again for all your time... I tried adding the code you send me to the "Form tag attachment" and still does not work, I'm about to give up...😟
I bet is something real simple and I just keep miss in it... i keep getting the email info but no file attachtment...

P.S. did you get the user name and password I send to you via PM?
GreyHead 22 Mar, 2011
Hi wetback,

You hadn't configured the file input names and allowable file types in the Upload Files Action. I've done that for you and the file uploads are working OK.

You also hadn't entered the file upload input name in the Email Action. I've done that but you need to check and see if the attachment is working OK.

Bob
wetback 23 Mar, 2011
hey Bob!!

once again ur awesome!! it works!! i just send my self a file and got it in ftp as well as in my email!!

ur the MAN!!


Javier.
Wineblue2 10 Apr, 2011

Hi wetback,

You hadn't configured the file input names and allowable file types in the Upload Files Action. I've done that for you and the file uploads are working OK.

You also hadn't entered the file upload input name in the Email Action. I've done that but you need to check and see if the attachment is working OK.

Bob


Hey Bob,

Would you mind showing me the actual Email Action that you entered to get the file which was uploaded to attach to the email we receive? All I am getting is the uploaded file name and no actual file.
GreyHead 10 Apr, 2011
Hi Wineblue2,

There really isn't anything complicated. Here are minimal examples of the two mains settings. I think everything else is a default.

Bob
Wineblue2 10 Apr, 2011
Hmmm, That is what my settings are with the only exception being I have more file formats defined but when I test it all I am receiving is the file name of the attachment and no actual file attached.[attachment=1]file_upload.png[/attachment][attachment=0]email-action.png[/attachment]
Wineblue2 10 Apr, 2011
When I go to Show Data to view the records however I am not seeing any data being actually uploaded so I am guessing I am missing something somewhere in setting this up correctly.[attachment=1]record-view.png[/attachment]

The email template needs a different line other than {input_file_7} I am assuming as this is what is loading the file upload file name but I haven't seen what I should be using instead.[attachment=0]email-template.png[/attachment]
GreyHead 10 Apr, 2011
Hi WineBlue2,

The Attachments Field Name on your Email setup is empty.

And it looks to me as though there isn't an input_file_7 column in the database table to store the file name?

Bob
Wineblue2 10 Apr, 2011
Doesn't CF4 add this field when I add the Upload File action to the form? If so what field ID do I have to add to the Email Attachment field? Answered my own question and this is odd. I entered the {input_file_7} field into the Attachments field and it is now working. However, upon looking in myphpadmin for the table for this form I am not seeing any table field for input_file_7 being listed in the table? Is this only being handled for each particular instance this form is used?
GreyHead 11 Apr, 2011
Hi WineBlue2,

Some of the things that ChronoForms v3.2 had set as defaults are different in CFv4. The result is a much more flexible configuration . . . but at a price in set up.

As you saw you need to add the input name to specify an email attachment - many people don't want files attached to emails. Now you have full(er) control.

Saving in the database is quite separate. You need to have a column in the table with the same name as the input - file_input_7 in this case. From your image it doesn't look as if this column exists.

Bob
Wineblue2 11 Apr, 2011
CF3 I never worked with and so CF4 is my first experience. However my question was being as every Action I add to a form creates a table field shouldn't the same be true for the File Upload Action or is this only being handled per instance of its use?
GreyHead 11 Apr, 2011
Hi WineBlue2,

Some confusion of terminology here.

No Actions create table columns. They are linked to Events that process the form display and results.

Form Elements are the components of the form that you can drag into the Preview box to design a form layout.

There is a Create Table icon in the toolbar that you can use to Create a table. The table will include columns for all the form components* that are specified at that moment, including file uploads. If you later add another Form Element that won't be added to the table as a new column.

Bob

* Strictly only those Elements that return results: input, select, radio, checkbox, textarea, etc.
Wineblue2 11 Apr, 2011
Thanks Bob, that clears things up for me.
This topic is locked and no more replies can be posted.