Forums

minDate not working for datepicker

plus91anand 15 Aug, 2013
Hi
I am trying to restrict selection of past date in datepicker.
I had added
minDate: new Date()
in DateTime Picker config but it is giving javascript error in frontend.

TypeError: t is undefined
[Break On This Error]

t = t.toString();

Can you specify what can be the issue for this.
GreyHead 15 Aug, 2013
Hi plus91anand,

Please make sure that you are using the MooTools datepicker.

Please post a link to the form so I can take a quick look.

Bob
GreyHead 16 Aug, 2013
Hi plus91anand,

I've checked that it works OK with minDate: new Date() in the DateTime Picker config box.

On your site you have jQuery running and this, or some other script, may be conflicting with the MooTools library that Joomla! and ChronoForms use.

Bob
plus91anand 23 Aug, 2013
Yes it works on all my other sites. Might be some js conflict on this one.

Thanks for your support.
This topic is locked and no more replies can be posted.