brotherton-erpnext/erpnext/docs/user/manual/de/customize-erpnext/custom-scripts/custom-script-examples/date-validation.md

11 lines
266 B
Markdown
Raw Normal View History

2015-12-14 15:23:09 +00:00
## 15.3.1.2 Datenvalidierung
2015-12-14 15:23:42 +00:00
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"
}
});
2015-12-14 15:23:09 +00:00
{next}