Forums

dates

chrissy6930 10 Jun, 2011
hi all,

I would like to add a tweak to my addresults form and am wondering if that is possible ?

- when adding a new entry the datepicker should disallow the selection of historic dates
- when editing existing entries the potentially historic date shouldn't trigger a validation error

could somebody pls give me a hint?

J!1.5.23, CF 4 RC 1.9
GreyHead 10 Jun, 2011
Hi chrissy6930,

There is a minDate option for the datepicker. I posted some code to allow you to set a startDate to use with this.

What are the requirements for the editable version - is the date editable at all? Can it be set earlier than the existing date?

I think that the only answer is to write some clever PHP that will check if there is a value set and change the datepicker configuration settings to match.

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

VPS & Email Hosting 20% discount
hostinger