I want to calculate the age. It should be greater than 18 years.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020 02:47 AM
I have a variable on catalog item named "date of birth". I want to calculate the age. If the age is less than 18 years then it should alert a message.
If I am born on/before 15th Oct 2002, I shouldn’t see this message as today's age is 15th Oct 2020.
Labels:
- Labels:
-
Service Catalog
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020 03:35 AM
Hello Tanishka,
You can also create a UI policy on your table and select following conditions
Dob relative before 18 years ago
Select run scripts
if false, put an error message g_form.showFieldMsg
Mark the comment as a correct answer and helpful if it helps to solve the probem.