Comparing Actual end date and Planned end date
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 01:20 AM
I'm trying to compare to dates in change request form but it's not going inside if loop
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
var actualEnd = g_form.getValue('work_end');
var plannedEnd = g_form.getValue('end_date');
if ((actualEnd >= plannedEnd)) {
g_form.addErrorMessage('Actual end should be lesser than or equal to Planned end date ');
g_form.clearMessages('actualEnd');
}
0 REPLIES 0