What is the best way to validate the date picker widget for date of birth / age over 18 and masking in maestro?

On the widget its self or using a data field calculation? Can I then ensure that the validation message is focused on the date object? 

Date picker widget returns a string so I have gone that route for validation creating a date object.

I will likely utilize a js library / function for the masking - there will be other fields that utilize this also. 

Thank you,




    CommentAdd your comment...