Title: Error message for &#039;Birthdate&#039; field
Last modified: August 21, 2016

---

# Error message for 'Birthdate' field

 *  [catastr0phe](https://wordpress.org/support/users/kat_indo/)
 * (@kat_indo)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-for-birthdate-field/)
 * Hi,
 * I’m using WordPress 3.5.1, Buddpress 1.7.2 and Buddypress Xprofile Custom Fields
   Type 1.5.5.5
 * I see a problem with the error message for ‘Birthdate’ field on registration.
 * If you leave it blank it only shows error message for the ‘Year’ dropdown.
 * No error messages for ‘Day’ and ‘Month’.
 * Also, the error message doesn’t follow the same design with the other fields.
   All fields have a red box showing on top of them, but in ‘Birthday/Year’ shows
   a pink bubble!
 * So these are the problems:
    1. All fields for birthday must show error messages.
   Even if it’s a common message that the user has to fill out all of them. 2. The
   design of the error message must be consistent with the design of all the other
   error messages (red box).
 * Is there a way to resolve this problem? It’s rather confusing for the user, because
   if he fills out everything except ‘Day’ or ‘Month’ the system doesn’t let him
   register, but it doesn’t return an error either.
 * [http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/](http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/)

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

 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-for-birthdate-field/#post-3766917)
 * Hi,
 * It’s because my plugin use html5 fields so the design of the errors are predefined
   by the browser you are using. You can check in firefox, chrome or IE, they have
   their own design for those errors.
 * If you don’t want this behavior, you need to change the code of my plugin. Search
   line 292:
 * `<select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name();?
   >_year" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required
   ="true" required="required"<?php endif; ?>>`
 * Delete this:
    `required="required"`
 * The line will look like this:
 * `<select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name();?
   >_year" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required
   ="true"<?php endif; ?>>`
 * Now the errors will be managed only by the php of buddypress plugin.
 * With Html5 fields it’s not possible to show more than one error at same time,
   so I don’t think you can show at same time the bubble with error for day, month
   and year.
 *  [Y.Y.](https://wordpress.org/support/users/yatendra16/)
 * (@yatendra16)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-for-birthdate-field/#post-3766938)
 * it’s not show any error. after it
 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-for-birthdate-field/#post-3766939)
 * ???

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

The topic ‘Error message for 'Birthdate' field’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-xprofile-custom-fields-
   type.svg)
 * [Buddypress Xprofile Custom Fields Type](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [donmik](https://wordpress.org/support/users/atallos/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-for-birthdate-field/#post-3766939)
 * Status: not resolved