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

Variables are not showing in RTIM and SCTASK

nameisnani
Mega Sage

Hi Team , 

 

can any one please help me here 

 

We have catalog called ' simcisry'

 

Variables we have 

nameisnani_0-1715762491351.png

 

when i submit form from serviceportal 

nameisnani_1-1715762539229.png

 

If we check ritm in variables section , [ short descripition and description ] is not showing . Please screenshot below 

nameisnani_3-1715762647103.png

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

8 REPLIES 8

swathisarang98
Giga Sage

Hi @nameisnani ,

 

Check the ui policy and client script whether any of it is  hiding these fields for catalog task and requested item,

swathisarang98_0-1715763193385.png

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************

nameisnani
Mega Sage

Hi @swathisarang98 

 

nameisnani_0-1715769909315.png

nameisnani_1-1715769928353.png

 

There are 2 UI POlicy's . and 1 Cilent script , 

can you please where was the problem here .

 

nameisnani_2-1715770033466.png

 

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 . 

@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