[docs] custom script examples, [build] move CMS make to app via event_handlers.on_build

This commit is contained in:
Rushabh Mehta
2013-09-03 17:04:05 +05:30
parent 4263344cd2
commit d50d924ee5
12 changed files with 190 additions and 11 deletions

View File

@@ -0,0 +1,12 @@
---
{
"_label": "Date Validation: Do not allow past dates in a date field"
}
---
cur_frm.cscript.custom_validate = function(doc) {
if (doc.from_date < get_today()) {
msgprint("You can not select past date in From Date");
validated = false;
}
}