brotherton-erpnext/erpnext/docs/user/manual/de/customize-erpnext/custom-scripts/custom-script-examples/date-validation.md
2015-12-15 17:22:11 +05:30

266 B

15.3.1.2 Datenvalidierung

frappe.ui.form.on("Event", "validate", function(frm) {
    if (frm.doc.from_date < get_today()) {
        msgprint(__("You can not select past date in From Date"));
        throw "past date selected"
    }
});

{next}