Closed
Solved
pega validation
I want to apply validation for DOB field 17y < Age < 81y, how can I do that?
***Edited by Moderator Marije to add Capability tags***
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
I want to apply validation for DOB field 17y < Age < 81y, how can I do that?
Accepted Solution
@sahanc38 If you want to validate based on given date of birth and not age then use a validate rule and then select expression and use below expression
@DateTimeDifference(@dateValue(.DateOfBirth),@dateValue(@today()),"Y") and then check for the value if its less than 17 or greater than 81.
Hope this helps.
@sahanc38 oh yes I missed DOB in the question. do as Santosh said
@DateTimeDifference(@dateValue(.DateOfBirth),@dateValue(@today()),"Y") and then check for the value if its less than 17 or greater than 81.
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.