WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Contact Form 7 - how do I make fields "required" (3 posts)

  1. Nicole Parks
    Member
    Posted 2 years ago #

    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/

  2. Nicole Parks
    Member
    Posted 2 years ago #

    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>

  3. TheNightfly
    Member
    Posted 1 year ago #

    Thanks! You saved me from having to figure it out :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic