Limit date picker

mattiadj 13 Apr, 2013
Hello to all,
i'm using ChronoForms 3.1 RC5.5 on my joomla 1.5 site. I can't update it since a lot of mod i have made.
My question is simple. I have a date picker
<input class="cf_datetime " size="18" id="scadenza" name="scadenza" type="text" />
and i simply need to prevent that you could select a date greater than one month (30 days) from today.

How can i do it?

Thanks
GreyHead 13 Apr, 2013
Hi mattiadj,

I'm not sure that you can do that with the Aeron Calendar in ChronoForms v3 (you can in v4). You might be able to do it using the Block option - see the calendar docs here.

Bob
mattiadj 15 Apr, 2013
Thank you for the link.
i can set the days to block in php but then how can i implement the block option in js in cf?

For example i want block the the calendar after 15-5-2013. I can set 15-5-2013 in php but how can i set it up in cf?
GreyHead 15 Apr, 2013
Hi mattiadj,

You may be able to use the Date Fields extras box on the Form General tab but more likely that you will have to use some custom JavaScript I'm afraid.

Bob
mattiadj 15 Apr, 2013
So i can't use the datepicker of js?

How can i do? I can use external js no problem to make all things are needed
This topic is locked and no more replies can be posted.