Sunday, January 30, 2011

JavaScript - Date of Birth Validation

As a requirement for a project, I had to make sure that the applicant was at least 18 years of age. The code snippet below checks that the person is of age and (if he or she is underage) displays an alert pop-up. This code should be placed in the onSave event and will effectively prevent the CRM form from saving if the person is less than 18 years old:

No comments:

Post a Comment

Search This Blog

About Me

I'm a consultant working in Collingswood, NJ. I only recently discovered CRM and have been learning new ways to extend its functionality in order to meet customer requirements. It is my hope that you find this site not only useful, but entertaining as well.