- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2021 12:47 AM
Hello All,
I have a requirement where a particular variable should only be visible on the particular task for suppose after the submission of the catalog item A task is generated once the state of task A is completed task B is generated where I need to show the variable on this task only, how can we solve this please help me..
Thanks,
Akhil.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2021 01:17 AM
Hi,
You can configure specified variable on workflow activity where you create task
Please see below snap for the reference
Open task activity where you can add the variables which you want to display on task form
Please mark as correct/helpful, If you find any help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2021 12:56 AM
You will have to create onLoad Catalog Client Script which Applies on Catalog Task
Also you should be knowing what is the unique short description for each task Task A, Task B
function onLoad(){
if(g_form.getValue('short_description').indexOf('Task B Short Description') < 0){
// it is not task B so hide it
g_form.setDisplay('variableName', false)
}
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2021 01:17 AM
Hi,
You can configure specified variable on workflow activity where you create task
Please see below snap for the reference
Open task activity where you can add the variables which you want to display on task form
Please mark as correct/helpful, If you find any help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2021 01:59 AM
Please avoid duplicate question
Please delete your below question
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader