Create date-validation.md
This commit is contained in:
parent
20e97c9dbc
commit
8dfb35bb79
@ -0,0 +1,10 @@
|
||||
## 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}
|
Loading…
x
Reference in New Issue
Block a user