Variables are not showing in RTIM and SCTASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 01:48 AM
Hi Team ,
can any one please help me here
We have catalog called ' simcisry'
Variables we have
when i submit form from serviceportal
If we check ritm in variables section , [ short descripition and description ] is not showing . Please screenshot below
For SCTASK also same , behavior .
In workflow i have added variables also , but still those two variables ' short description and description ' is not showing .
can anyone please provide what is the solution for this . Please help me here .
Please provide detalied steps to resolve this issue
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 01:53 AM
Hi @nameisnani ,
Check the ui policy and client script whether any of it is hiding these fields for catalog task and requested item,
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 01:54 AM
Hi @nameisnani
Please check is any UI policy blocking the visibility of these 2 variables?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 03:48 AM
There are 2 UI POlicy's . and 1 Cilent script ,
can you please where was the problem here .
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
g_form.clearValue('description_1'); // description variable name
g_form.clearValue('short_description_1'); // short description variable name
if (newValue == "prod_access_scdaas") // choice value
{
g_form.setMandatory('description_1', false); // description variable name
g_form.setMandatory('short_description_1', false); // short description variable name
g_form.setDisplay('description_1', false); // description variable name
g_form.setDisplay('short_description_1', false); // short description variable name
} else {
g_form.setMandatory('description_1', true); // description variable name
g_form.setMandatory('short_description_1', true); // short description variable name
g_form.setDisplay('description_1', true); // description variable name
g_form.setDisplay('short_description_1', true); // short description variable name
}
}
Please @Dr Atul G- LNG @swathisarang98 where was the issue .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 04:14 AM
@nameisnani In the first UI policy if request category is add/modify you are making short description and description visible true and you have set reverse if false and you have included applies on requested item so try removing ui policy action for Short description and description as you have already mentioned in client script in else part that these 2 fields should be visible it will work for the request category is add access to azure file .
Let me know if this still doesn't work .
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang