• hello,

    I was using the contact form today and saw that it is possible to select a date (from the calender popup) which has been passed already.
    So I could select to make an appointment for 15 December 2011 at this very moment.
    Is there a way to make it impossible to select old dates from the calender popup? and make it standard to select the date of that moment

    just wondering.

    thanks!

    https://www.ads-software.com/extend/plugins/si-contact-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The JavScript calendar I used was the best free open source one I could find. However it lacks some features. JavScript calendars with more features are not free, so I cannot use them.
    Sorry.

    wp-content/plugins/si-contact-form/date/ctf_epoch_classes.js
    There are a few settings hard coded in the file. Any changes you make will be overwritten on the next plugin update.

    this.displayYearInitial = this.curDate.getFullYear(); //the initial year to display on load
    this.displayMonthInitial = this.curDate.getMonth(); //the initial month to display on load (0-11)
    this.rangeYearLower = 1930;
    this.rangeYearUpper = 2037;
    this.minDate = new Date(1930,0,1);
    this.maxDate = new Date(2037,0,1);
    this.startDay = ctf_cal_start_day; // the day the week will 'start' on: 0(Sun) to 6(Sat)
    this.showWeeks = true; //whether the week numbers will be shown
    this.selCurMonthOnly = false; //allow user to only select dates in the currently displayed month
    this.clearSelectedOnChange = true; //whether to clear all selected dates when changing months

    Mike

    hi mike i have set the maxDate to today’s date but still the calender allows the user to select the date after today
    how to force the calender to show dates upto maxDate ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] Date field > Can input passed date’ is closed to new replies.