function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ATU NALOMAIATU NALOMAI 

Create a validation rule so that student under 18 years of age won’t be able to apply, it will only permit students 18 years and above

Create a validation rule so that student under 18 years of age won’t be able to apply, it will only permit students 18 years and above?
Suraj Tripathi 47Suraj Tripathi 47

Hi ATU,

Please find the solution.

YEAR(TODAY())  - YEAR(Birthday__c)  <= 17

error: Your age is less than 18

Please mark it as the Best Answer if it helps you

Thank You

Kenneth Weiss 10Kenneth Weiss 10
Thanks for the information!
Joseph KerbyJoseph Kerby
Once I had a similar task at my university, and it took me some time to finish it. I like coding, but to be honest, and don't have a lot of time to practice because of tons of other tasks. Not a long time ago, I started using https://paperap.com/ when I had writing tasks because the essay examples provided there are very helpful. Writing tasks take the most time to complete, and the process is faster and easier for me with paper examples. So, I hope, with such help, I'll have more time to practice coding.