Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

nayanmule
Tera Expert

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
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? 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

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.