It means in date-picker dates after today should be disabled
Reference:
Please use it.
frappe.ui.form.on('ToDo', {
refresh: function(frm) {
frm.fields_dict.date.datepicker.update({ // Here date is the Todo field name.
maxDate: new Date(frappe.datetime.get_today()),
});
}
});
Output:
Please set your doctype and field name in script.
2 Likes
Thankyou It worked!