By gamma on
Hello,
i use great plugin named Webform to make form and send it to email. Is it possible to filter and send to the email ONLY fields with some input? So, empty fields, won't be sent to the email.
Thanks for any advice, Gamma
Hello,
i use great plugin named Webform to make form and send it to email. Is it possible to filter and send to the email ONLY fields with some input? So, empty fields, won't be sent to the email.
Thanks for any advice, Gamma
Comments
I am also looking for an
I am also looking for an answer to this question.
I was able to hide the empty
I was able to hide the empty fields only by theming the confirmation email.
See THEMING.txt file in module folder: you need a little of PHP knowledge, though, as you have to modify email templates
Right exactly what I don't
Right exactly what I don't have. I can copy and paste code and marginally understand what I am doing. Anyone kind enough to give me some step by step guidance? The theming.txt file really doesn't provide much information. It basically says you can theme the e-mail. This I know, but how? Sorry I am letting my frustration show. There are a ton of post on this with people saying they figured it out without putting detailed directions as to how.
I will send you an example
I will send you an example tomorrow: the files I created are on the server in my office.
You are awesome. Thank you
You are awesome. Thank you so much.
Here is my
Here is my webform-mail-ID.tpl.php
I hope the comments I included will let you understand how to modify the output: if something is still unclear feel free to ask
Thanks. I will try this
Thanks. I will try this shortly. I looks exactly like what I need.
The code seems to describe
The code seems to describe exactly what I want it to do, but I cant get it to work. Could it be that I am using the latest version of Webform 6.x-3.2? The theming seems to have changes some with this newest version, but I don't know enough to know what I need to do. I am using multiple field-sets so I know that complicates things somewhat.
Just to restate what I am trying to do for clarification and for those skipping the first part of the thread. I want to edit the email sent by webform to not include the fields that are left blank. My form has a large number of fields (70+) of which a large majority are left blank.
Unfortunately theming webform
Unfortunately theming webform is very different in version 6.2 and version 6.3, so my example is not valid for the webform version you use.
Read THEMING.txt file in webform folder and take a look to templates/webform-mail.tpl.php to see how to adapt my examples to the new environment.
I will study them ASAP as I would like to migrate all my webforms (and customizations) to the last version, but cannot tell you anything at the moment.