Forums

Check Multiple DateFields

wwgg 19 Feb, 2018
How Can I do e check between multiple datefields?


I have 3 date fields in 1 form. How do I check if Field1 < Field2 and Field3 has to be 2 weeks or more than Field 2
Max_admin 20 Feb, 2018
Hi wwgg,

There is calendar settings for start date and end date, you can use that to make the first condition, but to force the 2 weeks period you will need to use some custom code check.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wwgg 20 Feb, 2018
Can you give me a hint how to make the reference to the first field?
Max_admin 20 Feb, 2018
Hi wwgg,

Inside the calendar field settings > Advanced > Start calendar, use here this code:
#id_of_field1 //you must include the #
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wwgg 20 Feb, 2018
I tried that... But is not working...



Field Tot has to be => "van"

This topic is locked and no more replies can be posted.