Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm using a profile2 profile for registration which has a date field, which needs to be validated for age. I am using field validation module to validate the date field. I need to validate the field for age restrictions. I have entered maximum and minimum values in global format. It is display the custom error to each and every entry I make to the field (Date of birth). I have attached the screenshot for further information. Can anyone help acheiving this.
Comments
Comment #1
g089h515r806 CreditAttribution: g089h515r806 commentedYou made a mistake for maximum and minimum values.
Comment #2
shwethash CreditAttribution: shwethash commentedMay I know where is the mistake exactly? Can you please be more specific.
Comment #3
g089h515r806 CreditAttribution: g089h515r806 commented