Hi,
I have form create in webix. I have two fields with dates like shown below.
{ view: "datepicker", id: "datesent", name: "datesent", label: translation.date_sent, timepicker:true, invalidMessage: "This field cannot be empty", suggest:{
type:"calendar",
body:{
timepicker:true,
blockDates:function(date){
if(date.getFullYear()<=2013)
return true;
}
}
}},
{ view:'datepicker',id: "dateexp", name: "dateexp", label: translation.date_expiration, timepicker:true, invalidMessage: "This field cannot be empty",
suggest:{
type:"calendar",
body:{
timepicker:true,
on:{
"onBeforeDateSelect":function(data,root){
console.log(root);
if (data.getDate() < 15) return false;
}
}
}
}},
My question is, how can i disable dates of second date field based on selection that i made in first field.
For example: If I select 29.08.2015 in first date field, in second date field I should not have possibility to select any date that is <29.08.2015. How can I do this based on code that i have above.
Many thanks.