Auto populate due date based on priority.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 05:25 AM
Hi All,
There is a one requirement like based on the priority need to auto populate due date on problem record.
If problem priority is P1 -> the due date of the problem record should be +2 working days
If problem priority is p2 -> the due date of the problem record should be +4 working days
I have written a on change client script
var priority = g_form.getValue('priority');
var duedate = g_form.getValue('due_date');
var date;
if(priority == 1){
date = '7 00:00:00';
g_form.setValue('due_date',date);
}else if(priority == 2){
date = '4 00:00:00';
g_form.setValue('due_date',date);
}
}
I'm getting result like
Please help how can I resolve my issue
Thanks,
Pavan
0 REPLIES 0