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

help with onLoad client script

Jen11
Tera Expert

I have a catalog item with the following checkbox.  My requirement is to create onLoad client script that is if the 'Requested for' job code is 40 and above to show the Copilot checkbox, otherwise hide the field.  Can someone help me with that client script? 

Jen11_0-1755539460158.png

 

7 REPLIES 7

Jen11
Tera Expert

its on the u_job_codes table

does the u_job_codes table have user field as well?


Raghav
MVP 2023
LinkedIn

@Jen11 If your custom table u_job_codes has user reference as well then you need to do glideajax to get job code and based on that hide and show the variable.

 

refer: https://www.servicenow.com/community/developer-articles/glideajax-example-cheat-sheet/ta-p/2312430 

 


Raghav
MVP 2023
LinkedIn