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!
Started 3 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!
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
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
Thanks for the response. Exactly what I needed!
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
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
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 S
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
You must log in to post.