I have a custom field named "birthyear" and I want to ensure that people under a certain age (13), can't register. Any help is greatly appreciated.

Tim

Comments

dwees’s picture

You want to create a custom validation function as well. Look up the documentation on how to create custom validation, and how to override the current validation for the user module form.

Dave

BioALIEN’s picture

The quick and dirty solution is to just use JavaScript validation. If age <13 stop the form and display a dialogue ;)

But obviously wouldn't work with JS disabled browsers.
------------------------------
BioALIEN
Buy/Sell/Trade with other webmasters: WebMasterTrader.com

Willdex’s picture

a module for that?

gwen’s picture

I just submitted a module validateage to do age validation, check it out to see if it meets your needs.

gwen

BioALIEN’s picture

Gwen,

Wouldn't it be better if your module was contributed as a patch towards the profile.module and included in D6?

------------------------------
BioALIEN
Buy/Sell/Trade with other webmasters: WebMasterTrader.com