WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Contact Form 7 – how do I make fields "required"

[Resolved] Contact Form 7 – how do I make fields "required"

  • Nicole Parks
    Member

    @drawingartinstruction

    The name and email fields are already required, as indicated by the (required) next to the field titles. However, I’ve gotten forms sent to me that ONLY have those fields entered. I need the Subject and Message Body required also, but obviously just adding (required) next to them doesn’t translate into actual code. Any help would be appreciated!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nicole Parks
    Member

    @drawingartinstruction

    NEVERMIND! I figured it out. I noticed after I posted this that right next to the Name and Email fields is an asterisk. I had to add an asterisk in the Subject and Message Body fields:

    <p>Comments or questions are welcome.</p>

    <p>Your Name (required)
    [text* your-name] </p>

    <p>Your Email (required – we need this to respond to you)
    [email* your-email] </p>

    <p>Subject (choose one)
    [select* Subject include_blank “Technical Issues (video not playing, PDF not downloading)” “Content Issues (mistake found on text of website, videos, or documents)” “Feedback About Site or Program (positive or negative)” “Testimonial (Tell us why you’ve enjoyed the program or our customer service)” “Question” “Suggestion for Further Instruction” “Other”] </p>

    <p>Your Message
    [textarea* your-message] </p>

    <p>[submit “Send”]</p>

    TheNightfly
    Member

    @thenightfly

    Thanks! You saved me from having to figure it out 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Contact Form 7 – how do I make fields "required"’ is closed to new replies.