WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Radio Button Validation (4 posts)

  1. grombleton
    Member
    Posted 7 months 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 7 months ago #

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

    Checkboxes, Radio Buttons and Menus

  3. grombleton
    Member
    Posted 7 months 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 7 months ago #

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

    See the options table > Checkboxes, Radio Buttons and Menus

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.