12 lines
275 B
Markdown
12 lines
275 B
Markdown
---
|
|
{
|
|
"_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;
|
|
}
|
|
} |