Title: Custom message for checkbox
Last modified: June 12, 2017

---

# Custom message for checkbox

 *  Resolved [ozviewer](https://wordpress.org/support/users/ozviewer/)
 * (@ozviewer)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-message-for-checkbox/)
 * I have a check box field in the contact form that is required:
 *     ```
       <p>Select Age (required)<br />
       [checkbox* your-age use_label_element "Under 13 years of age" "13 years or over"]</p>
       ```
   
 * At the moment, as long as the writer selects a checkbox the email will be sent.
   I want to change this so that if the writer selects “Under 13 years of age” an
   error message appears, e.g. “Please ask your parent or guardian to relay your
   message” and for the email not to be sent.
 * Can anyone suggest how I could do that?
    -  This topic was modified 8 years, 11 months ago by [ozviewer](https://wordpress.org/support/users/ozviewer/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-message-for-checkbox/#post-9222160)
 * Use [Acceptance Checkbox](https://contactform7.com/acceptance-checkbox/) or implement
   your own [Custom Validation](https://contactform7.com/2015/03/28/custom-validation/).
 *  Thread Starter [ozviewer](https://wordpress.org/support/users/ozviewer/)
 * (@ozviewer)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-message-for-checkbox/#post-9222227)
 * Thanks for the quick reply. I added an acceptance box which required the writer
   to confirm their age and edited the error message which appeared if they didn’t
   do so.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom message for checkbox’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [error message](https://wordpress.org/support/topic-tag/error-message/)

 * 2 replies
 * 2 participants
 * Last reply from: [ozviewer](https://wordpress.org/support/users/ozviewer/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/custom-message-for-checkbox/#post-9222227)
 * Status: resolved