Title: Date Drop-Down Field
Last modified: March 2, 2020

---

# Date Drop-Down Field

 *  Resolved [james215](https://wordpress.org/support/users/james215/)
 * (@james215)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/date-drop-down-field/)
 * Hello,
 * Does anyone know of a CSS or HTML code that will allow me to block-out certain
   dates when is comes to the date form field.
 * What I am trying to do is not allow a person to pick a date on the form for an
   appointment that is not 2 days out from the date they filled out my form.
 * For example is a visitor fills out my form on March 3rd then I want the calendar
   to not allow them to choose March 4th or 5th as a appointment request date, but
   to force them to pick March 6th or later.
 * I would like to be able to do this as my typical response to the submission could
   take 24-48 hours for a reply.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdate-drop-down-field%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Justin McElhaney](https://wordpress.org/support/users/jmcelhaney/)
 * (@jmcelhaney)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/date-drop-down-field/#post-12537682)
 * This will take some custom code to accomplish. [https://developer.ninjaforms.com/codex/datepicker/](https://developer.ninjaforms.com/codex/datepicker/)
 *  Thread Starter [james215](https://wordpress.org/support/users/james215/)
 * (@james215)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/date-drop-down-field/#post-12799784)
 * I apologize, but I marked this as resolved a little over a month ago, but I am
   revisiting this again. I just need to which code to use from the sample code.
   Please see below. I know I will need to modify the code, but I am not sure what
   to modify to.
 *  dateObject.pikaday._o.i18n = {
    previousMonth : ‘Month Before’, nextMonth : ‘
   Month After’, months : [‘Jan’,’Feb’,’Mar’,’Apr’,’May’,’Jun’,’Jul’,’Aug’,’Sep’,’
   Oct’,’Nov’,’Dec’], weekdays : [‘Sunday’,’Monday’,’Tuesday’,’Wednesday’,’Thursday’,’
   Friday’,’Saturday’], weekdaysShort : [‘Sun’,’Mon’,’Tue’,’Wed’,’Thu’,’Fri’,’Sat’]};
 * or
 * ateObject.pikaday._o.disableDayFn = function( date ) {
    var disabledDays = [“
   2017-04-28”, “2017-04-29”, “2017-04-30”];
 *  if ( _.indexOf( disabledDays, moment( date ).format( “YYYY-MM-DD” ) ) !== -1){
   
   return true;

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Date Drop-Down Field’ is closed to new replies.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [james215](https://wordpress.org/support/users/james215/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/date-drop-down-field/#post-12799784)
 * Status: resolved