Buy Now
Sign in

Can we restrict dates available in Calendar?

pattaya2000 , January 18 2010, 22:18
P
pattaya2000 26
January 18 2010, 22:18 #45842
Hi

Is it possible to restrict the dates that people can choose from the calendar when using the form?
I'd like them to be able to choose only any date starting from tomorrow (based on the current time in Thailand)*

This would enable me to provide the calendar for customers to choose their delivery date. At the moment, I'm giving them a blank text field for them to type into

* my hosting server is in the US

Thanks in advance

Simon
T
Tolwyn 2
January 24 2010, 16:24 #46075
Hi!

Its relativly simple.
You have to edit the file calendar2.js found in \components\com_chronocontact\js
An documentation can be found at http://electricprism.com/aeron/calendar/#manual
You can also block specific dates like holidays or similar.

I was so proud of myself that I found all of this out by myself.
Hope it helps.

best regards
tolwyn

happy editing

My site
http://www.rps-it.de
GreyHead 64
January 24 2010, 20:14 #46082
Hi Tolwyn,

You can usually do the same by entering the parameters in the box on the Form General tab (down at the bottom) without any need to edit the js file.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
T
Tolwyn 2
January 26 2010, 17:25 #46213
Hi Grayhead!

Thanks, I didnt see that(obviously :-)). It's simpler that way. On the other hand, so I can create some files with different setting, e.g my personal Holidays etc. and upload them at the right time. I even wondered sometimes if I should write an editor to create them. Oh well, if I've got the time.

best regard
tolwyn
M
marald 10
February 15 2010, 14:28 #47194
"GreyHead":
Hi Tolwyn,

You can usually do the same by entering the parameters in the box on the Form General tab (down at the bottom) without any need to edit the js file.

Bob


Hi Bob,

how would I accomplish this?

I have a website with several forms, on some of the forms the user should only be allowed to pick tuesday's and wednesdays, but on the other form only weekends, and another form to choose their date freely.

Can you give an example what I should fill in on the general tab on the bottom?

regards,
Marald Bes
GreyHead 64
February 15 2010, 15:28 #47196
Hi Marald,

There are some examples already in the box on the General tab; please take a look. And the documentation for the other properties is on the page that Tolwyn linked to.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much