Forums

Fast Secure Contact Form
Date field > Can input passed date (2 posts)

  1. boriskamp1991
    Member
    Posted 4 months ago #

    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!

    http://wordpress.org/extend/plugins/si-contact-form/

  2. Mike Challis
    Member
    Posted 3 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic