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

12 lines
375 B
Markdown
Raw Normal View History

# Datenvalidierung
<span class="text-muted contributed-by">Beigetragen von CWT Connector & Wire Technology GmbH</span>
2015-12-14 15:23:09 +00:00
2015-12-14 15:23:42 +00:00
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"))
2015-12-14 15:23:42 +00:00
}
});
2015-12-14 15:23:09 +00:00
{next}