We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Default value for logged in user not populating when the portal language is changed.

nayanmule
Kilo Sage

Hi All,

I am facing an issue where we have a catalog item variable 'Requested for ' in which we are populating logged in user as default value using 

javascript:gs.getUserID(); 

But when the language for the user is changed, this doesn't work and the variable is also not visible.

 

Anyhelp will be appreciated.

 

Thanks,

Nayan

 

2 REPLIES 2

Medi C
Giga Sage

Hello @nayanmule,

 

Is it happening to a specific catalog item?

Have you checked client scripts / UI policies?

Any errors in the Browser Console? 


Thanks & Best regards,
Medi

Yes, it is happening only with specific catalog item . Yes, I have checked client scripts & ui policies. 

But didn't find any solid reason for the root cause.