How to remove blank lines in email for unfilled form items
-
Hi,
I’ve Contact form 7 and I want to get blank lines for unfilled form items
My Form data:
<b>Personal data</b>
<p>Name:
[text* name] </p>
<p>Last name:
[text* lastname] </p>
<p>Date of birth:
[text dob] </p>
<p>City:
[text city] </p>
<p>State:
[text state] </p>Message body:
PERSONAL DATA
Name: [name]
Lastname: [lastname]
Date of birth: [dob]
City: [city]
State: [state]As you can see fields Name and Lastname are required and if I leave other empty in my Email msg I’ll get this:
PERSONAL DATA
Name: Name
Lastname: Lastname
Date of birth:
City:
State:And what I wan’t to get is:
PERSONAL DATA
Name: Name
Lastname: LastnameI’ve tried this solution http://wordpress.org/support/topic/plugin-contact-form-7-how-to-do-away-with-blank-lines-in-email-for-unfilled-form-items?replies=6
but it doesn’t work for me.
Any help? Thank you!
- The topic ‘How to remove blank lines in email for unfilled form items’ is closed to new replies.