# Datenvalidierung Beigetragen von CWT Connector & Wire Technology GmbH frappe.ui.form.on("Event", "validate", function(frm) { if (frm.doc.from_date < get_today()) { frappe.msgprint(__("You can not select past date in From Date")); frappe.throw(__("past date selected")) } }); {next}