WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Guriqbal
    Member
    Posted 1 year 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

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

  2. mr_swede
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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?');
    });
    </script>

    Thanks for the reply mr_swede

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic