Skip to main content
Nintex Community Menu Bar

How to show only next weekend dates in Ninxtex Form?

  • Jun 4, 2018 4:55 AM UTC
  • 3 replies
  • 32 views
  • Translate All

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
  • Jun 7, 2018 6:07 AM UTC

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,
})
Translate

Forum|alt.badge.img+14
  • Scholar
  • Jul 10, 2018 8:25 AM UTC

perfect!

please mark correct answer.

Translate