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

  1. Kahil
    Posted 4 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?


  2. stuart619
    Posted 3 years 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

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic