10 years ago
7
Topic

Hello, i have two calendar fields in one form. Is is possible to validate second calendar field date to can be only after selected date in the first calendar field ?

Best Regards!

Get a VIP membership
693 Posts
rpoy
10 years ago
1
Level 1

Hi Dreakman,

Yes you can do what you want.  In the Site Form of your Content Type, select Required/Validation (option #3), then add a Confirmation validation rule.  Add the name of the other date field and an alert message.

Hope that helps,

Randy

10 years ago
0
Level 2

Hi i try it but there is no effect. 

Field configuration + calendar 2 field validation attached.

10 years ago
4
Level 1

Does anybody had any idea ?

693 Posts
rpoy
10 years ago
3
Level 2

Hi Dreakman,

Unfortunately your thumb images are too small... Do both of your calendar fields have the same date format?  How are you storing the dates?

thanks,

Randy

10 years ago
2
Level 3

Sorry for the img's, there are big sizes links:

http://www.seblod.com/images/medias/15989/calendar-fields.jpg
http://www.seblod.com/images/medias/15990/validation-cal-field-2.jpg

Yes both are in thesame format. both are stored as columns in form table in database.

Thank you in advice!

693 Posts
rpoy
10 years ago
1
Level 4

Hi Dreakman,

Is the validation field set up on the dateandhourback field?

thanks,

Randy

10 years ago
0
Level 5
Get a VIP membership