Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Auto populate due date based on priority.

pvv1045330
Tera Contributor

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   

pvv1045330_0-1699363398270.png

 

Please help how can I resolve my issue

 

 

Thanks,

Pavan

 

0 REPLIES 0