Skip to main content
Nintex Community Menu Bar

How to show only next weekend dates in Ninxtex Form?

  • June 4, 2018
  • 3 replies
  • 22 views

Forum|alt.badge.img+1

Hello,

I will like to have a dropdown where I show only the next weekend  (Saturday and Sunday) dates with two times (morning and afternoon)? 

How is that possible? 

3 replies

Forum|alt.badge.img+14
  • Scholar
  • June 7, 2018

Forum|alt.badge.img+1

Thanks. It worked as below

NWF$('.yourInputClass').datepicker('option', {
beforeShowDay: function(currDate) {
if (currDate.getDay() == 1 || currDate.getDay() == 2 || currDate.getDay() == 3 || currDate.getDay() == 4 || currDate.getDay() == 5)
return [false, ""];
return [true, ""];
},
minDate: 0,
maxDate: +1 * 7,
})

Forum|alt.badge.img+14
  • Scholar
  • July 10, 2018

perfect!

please mark correct answer.