Validate pattern for date range

Hi @monika .

I have created a test program in Play 2.35.1 () which should be available until tonight if you want to test it. It is called PR Validation and works with what you are looking for. I didn’t invest time in changing the attribute names so your rules is applied on the attribute first name and not in the age.

Your rule should be as follows (I changed 01 to 04 so you see it fails on 03)

However, I don’t think this is very user friendly as you are forcing the users to put manually something like 03 instead of 3 which might confuse users. Also, you may want to use the attribute type “Age” which provides an input for this:

Web:

Android:

Cheers.

1 Like