i have start date field and want only show date in calendar after todays not show previous date
how to achieve this?
hi @NCP
i have used this script
frappe.ui.form.on(‘Lease’, {
refresh: function(frm) {
frm.fields_dict.start_date.datepicker.update({
minDate: frappe.datetime.get_today() // Set the minimum date to today’s date
});
}
});
still i can choose previous date
It’s worked properly from my end.
It does not work in the quick entry form.
Please check the date field name.