The CreatorCon Call for Content is officially open! Get started here.

How to set short description for catalog task for the selected job function?

Siva P
Tera Expert

Hi ,

I have catalog item with the filed called request type, it is a choice field we have multiple choices. When user selects some of the choices from the dropdown and clicks order now . Then it will create a RITM and attached with catalog task.

Now i need set the catalog task short description field with some text based on the selected choice for catalog item filed.

Please help me how to achieve this. Thanks in advance.

1 ACCEPTED SOLUTION

Hi Ankur,

I have given filter condition like below but the values which are not storing in worknotes.

 

Script:

var str = '';
if(current.u_actual_effort != '')

str = str + previous.u_actual_effort + ' ';

if(current.u_week_and_month != '')

str = str + previous.u_week_and_month;

current.work_notes = str;
})(current, previous);

View solution in original post

21 REPLIES 21

Hi Ankur,

 

With some modifications i have used below script its a on submitt BR. Its working now.

var value =current.getValue('Field value');
var value2= previous.getValue('Field value');
var value3= current.getValue('2nd Field value');
if(value!=value2){
current.work_notes= value2 + " was changed to "+ value;

current.2nd Field value="";

}
else if(value3!=null) {
current.work_notes= " Field lable : " + " " +value3;
current.2nd Field value="";
}
else{
current.update('work_notes', false);
}

 

Thank you so much for your inputs.

 

Regards,

Siva.

Great!  It looks like you marked your own response as the correct answer, which may be confusing to others that read this later.

Would you mind marking my response as Correct & 👍Helpful if I am able to resolve your query.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader