Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

oueryemchi on "[Plugin: Contact Form 7] Sent emails - Hide labels of empty fields"

$
0
0

Hi, Thanks a mil for this great plugin! so much appreciated!

I am struggling to find a way to hide labels next to empty fields in the sent email (body message).

When a user does not fill non-required fields, and since i create labels in the body message, in the received email there are just labels without a value and it is not great!

Example of my template:

<strong>From:</strong> [your-name] [YourSurname]
<strong>Email:</strong> [your-email]

<strong>Contact me via:</strong> [contact_method]
<strong>Telephone:</strong> [telephone]

<strong>Product Code:</strong> [product-code]
<strong>Variant:</strong> [product-variant]
<strong>Date of purchase:</strong> [dateofpurchase]
<strong>Store: </strong>[store]

and I get this:

From: John doe
Email: test@test.com

Nature of enquiry: General enquiry

Contact me via: [contact_method]
Telephone: 00000000

Product Code:
Variant:
Date of purchase:
Store:

Message Body:
TEST TEST TEST

So I want to get rid of the empty once when the user does not fill in these fields...

Makes sense? any help will be highly appreciated.
A

http://wordpress.org/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>