WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Using placeholders and required field (3 posts)

  1. duncmorley
    Member
    Posted 1 year ago #

    Hi there

    I have a field that is using a placeholder. For example:

    [text* name placeholder "Name"]

    This is also a required field. Because this is using a placeholder the field does not error on submit. If I remove the placeholder then I get the error span is applied. I need to use placeholders and have the span error if nothing is put in. Why is it doing this and is there anything I can do? I never had any issues when it was watermark.

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Placeholder text isn't counted as input value. It's odd if you don't see an error when you input nothing into the field.

  3. duncmorley
    Member
    Posted 1 year ago #

    I have found a bit of javascript that I created a while ago that was causing this to happen. Panic over!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic