commit | 195619e6d4b9ce81b1b87d34ddcd5a775d1a98c9 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Mon Feb 22 18:06:02 2016 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Mon Feb 22 18:06:02 2016 +0530 |
tree | 65c65b48e0f8bc356924caaaf5c7a754f083d763 | |
parent | 22230afa0a8e9562c48ba73510738caf1db1cd76 [diff] | |
parent | b17d4035c1382861e69e0a31152b3016e45b818d [diff] |
Merge pull request #4855 from sbkolate/patch-1 better validation example for developer
diff --git a/erpnext/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/date-validation.md b/erpnext/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/date-validation.md index 0d080af..d68ab56 100644 --- a/erpnext/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/date-validation.md +++ b/erpnext/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/date-validation.md
@@ -1,10 +1,10 @@ # Date Validation - frappe.ui.form.on("Event", "validate", function(frm) { + frappe.ui.form.on("Task", "validate", function(frm) { if (frm.doc.from_date < get_today()) { msgprint(__("You can not select past date in From Date")); - throw "past date selected" + validated = false; } });