Contact Form 7
[resolved] Drop down field validation not working with watermark (3 posts)

  1. Guriqbal
    Posted 2 years ago #

    "Please fill the required field" not coming up with drop down field (also called Select fields) if using watermark in it.
    So, What I looking for is drop down in form with watermark. and if its not selected with following value. It should say "Please fill the required field"

    Thanks in advance


  2. mr_swede
    Posted 2 years ago #

    I don't know how watermarks inside a drop down work with CF7, but I had trouble with watermarks that actually was a theme issue, see http://wordpress.org/support/topic/watermark-makes-field-wider?replies=3

    So, my suggestion is that you temporarily switch to default theme and/or switch off other plugins to see if the problem persist.

  3. Guriqbal
    Posted 2 years ago #

    Hey I solved it with following jquery between <head> </head> and give id to certain field in CF7 replace what text you want to display:

    <script type="text/javascript">
    jQuery(document).ready(function($) {
    $("#howdid option:first:contains('---')").html('*Enquiry type?');
    $("#howdid2 option:first:contains('---')").html('*How you located us?');

    Thanks for the reply mr_swede

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