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 16:23:09 +01:00
2015-12-14 16:23:42 +01: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 16:23:42 +01:00
}
});
2015-12-14 16:23:09 +01:00
{next}