WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
How to remove blank lines in email for unfilled form items (2 posts)

  1. Shime
    Member
    Posted 1 year ago #

    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: Lastname

    I'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!

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

  2. Shime
    Member
    Posted 1 year ago #

    Nobody? Please

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic