WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Custom, text box error messages (12 posts)

  1. blakepeterman
    Member
    Posted 3 years ago #

    Does anyone know how to display a custom error message if someone leaves a name box blank. Then a different message if someone leaves a email box blank.

    I know about the message if a email entered is not a email, but what about a blank email no text at all.

  2. webjunk
    Member
    Posted 3 years ago #

    Why not just make those field Required?

  3. blakepeterman
    Member
    Posted 3 years ago #

    Thats what I mean, the boxes are required. But I want different error messages for different text boxes.

  4. goddesskarla
    Member
    Posted 3 years ago #

    When you log into your dashboard / contact .. below your form you have an area called Messages..

    K

  5. blakepeterman
    Member
    Posted 3 years ago #

    goddesskarla, I know about that.
    I guess I am not being real clear let me describe a scenario.

    A.) I have text box labeled name:
    B.) I have another text box labeled phone number:

    Say some one leaves both boxes empty,

    For box 'A' I would like a error message to state we need your name.

    For box 'B' I would like a error message to state we need your phone number.

    Something like this
    Thanks for your support.

  6. goddesskarla
    Member
    Posted 3 years ago #

    You might want to consider using cforms II http://www.deliciousdays.com/cforms-plugin/ It has lots of editing capabilities that Contact Form 7 doesn't offer. K

  7. blakepeterman
    Member
    Posted 3 years ago #

    I like the easy use of cf7, but it does offer the individual error messages like I want.

  8. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    I'd suggest using watermark instead like:

    [text* your-name watermark "We need your name"]
    [text* your-phone-number watermark "We need your phone number"]
  9. blakepeterman
    Member
    Posted 3 years ago #

    What is the watermark?

  10. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    A new feature introduced in Contact Form 7 2.4. You'll get how it works soon after you try it.

  11. blakepeterman
    Member
    Posted 3 years ago #

    I don't want default text.

    I want to display specific error messages based on the textbox it corresponds to.

    Currently they have a error message but it is the same for every text box. I want to be able to customize it base on the text box.

  12. blakepeterman
    Member
    Posted 3 years ago #

    The solution was gravity forms! It offers custom error messages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic