WordPress.org

Forums

Contact Form 7
Radio Button Validation (4 posts)

  1. grombleton
    Member
    Posted 1 year ago #

    I've read in the documentation that the radio buttons don't have a 'required' option because they don't need it.
    However, i have created a form that includes radio buttons and I am able to submit the form without having selected any of the options.

    What could be the problem and the fix?

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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Giving it a default option is recommended. Or, you can use checkbox* instead.

    Checkboxes, Radio Buttons and Menus

  3. grombleton
    Member
    Posted 1 year ago #

    How do it give it a default option in CF7? There's no option when selecting Radio Button via the Tag dropdown.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    [radio your-country default:3 "China" "India" "San Marino"]

    See the options table > Checkboxes, Radio Buttons and Menus

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

Tags

No tags yet.