Hiding Short Description based on User Language

sravanku888
Tera Contributor

how to configure ServiceNow to hide the short description of a catalog item when the user's language is Spanish

8 REPLIES 8

Dr Atul - LNG
Tera Patron

Hi @sravanku888 

 

You can do via UI policy liek this

 

Requested for.language = Spanish

 

UI action;

Short description --> Hide

Ankur Bawiskar
Tera Patron

@sravanku888 

you can use onLoad catalog client script on your Catalog item and use this logic

function onLoad() {
    var userLanguage = g_lang;
    if (userLanguage == 'es') {
        g_form.setDisplay('variableName', false);
    }

}

If my response helped please mark it correct and close the thread so that it benefits future readers.

@sravanku888 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

@sravanku888 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.