- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2020 02:02 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 07:50 PM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 01:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2020 02:25 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader