This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Display all fields in email
Started 16 years ago by slentz | 8 posts |
-
Is it possible to display all fields (including blank) in email?
Sorry if this has been addressed in a previous post...I could not find it.
Thanks, any help will be greatly appreciated!
Posted 16 years ago # -
Hi slentz,
Insofar as I understand your question, the email default does just that. The field is {entry_data}, which is inserted into the body of the email. You can also add anything else you like such as salutations and explanatory text.
Hope that is what you are wanting to know.
Ron S
Posted 16 years ago # -
Hi slentz,
It seems you want to display empty field also, to do so you should edit helper-functions.php file search around line 330 ~ 332 and 366 ~ 368 you'll find these code :
if(empty($data['value']) || $data['value'] == ' '){ continue; }
replace with this one
if(empty($data['value']) || $data['value'] == ' '){ //continue; }
MachForm Support
Posted 16 years ago # -
Thanks for the response. Exactly what I needed!
Posted 16 years ago # -
Hi redityo,
I'm a bit puzzled ... my forms show all 'empty' fields either when I specify them or using the universal {entry_data}. Does your fix only apply when 'plain text' emails is selected?
Or, am I missing something here?
Ron S
Posted 16 years ago # -
The code above only apply when you use {entry_data} only.
Are you sure you have modified the correct part of your code?If you would like us to check, send your file to: customer.service [at] appnitro.com
MachForm Founder
Posted 16 years ago # -
Hi yuniar,
I think you have misunderstood my question ... I'm not having any problems with getting 'empty' fields to show on forms or printouts.
That's why I asked about the code from redityo. I see the changes relate to the section for text only emails (helper-functions.php), hence my question. It was just a curiousity thing.....
Regards,
Ron SPosted 16 years ago # -
Ahh.. I see. Sorry! :-)
The code above should work for either the normal email or plain text.
Line 330 ~ 332 (this one apply to normal html email) and 366 ~ 368 (this one for plain text).
MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.