How to show only next weekend dates in Ninxtex Form?


Badge +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

Userlevel 5
Badge +14

have a look on this

https://community.nintex.com/message/77011-re-adding-options-in-choice-fields-dynamically-in-nintex-forms-2013?commentID… 

Badge +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,
})
Userlevel 5
Badge +14

perfect!

please mark correct answer.

Reply