help with onLoad client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2025 10:51 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2025 11:45 AM
its on the u_job_codes table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 03:30 AM
does the u_job_codes table have user field as well?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2025 10:57 AM
@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