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

  1. duncmorley
    Posted 3 years 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.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

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

About this Topic