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 G- LNG
Tera Patron
Tera Patron

Hi @sravanku888 

 

You can do via UI policy liek this

 

Requested for.language = Spanish

 

UI action;

Short description --> Hide

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader