WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Watermark or initial dropdown value not emailed? (2 posts)

  1. Kahil
    Member
    Posted 2 years ago #

    Other than having a blank option, can we have or is there a way to have the first option in there not be an emailable option? I am using the watermark feature on all of the other fields and I'd rather keep the form clean and uniform and not have labels.

    Is this possible?

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

  2. stuart619
    Member
    Posted 1 year ago #

    I came across this problem too.

    What I did was first give the dropdown an id in the form settings.

    Then I used jQuery to look for the --- and replace it with the text string you want.

    ---
    $("#howdid option:first:contains('---')").html('How Did You Hear About Us?');
    ---

    in this example the id is "howdid"

    the jquery looks for this id and then finds the first option. it checks that its value is --- and then swaps it for "How Did You Hear About Us?"

    This is my first reply so hopefully will help someone.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic