Contact Form 7
Required Radio Button Revisit (2 posts)

  1. cruxwireweb
    Posted 4 years ago #

    I have a Contact Form 7 form on which I'd like to make radio buttons required. I've read about this and have seen the point that radio buttons are required by default in HTML. However, I am able to submit my form without making a selection for the radio buttons, so that isn't bearing out to be true.

    I've seen some people set a default choice for the radio buttons, making sure at least one option is selected. In my case, this is a survey and the results will be evaluated statistically. If I set default choices for the radio buttons, I can't be confident the person actively chose that option and that would skew the statistics. They may have simply missed the question, or thought they already answered it.

    Does anyone have any suggestions? Another survey plug-in would work, but I'm having a hard time finding one that doesn't require a third-party service and/or isn't broken.

    I'm using WP 3.3, CF7, and Contact Form to Database Extension 2.2.4.

    Thank you!


  2. Takayuki Miyoshi
    Plugin Author

    Posted 4 years ago #

    That's where the exclusive option works.

    Example (you can see the demo on Checkboxes, Radio Buttons and Menus)

    Select Fruit (required)
    [checkbox* your-fruit exclusive "Apple" "Banana" "Grape"]

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