Client Script not working on glide_list field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 11:36 AM
I am trying to write a client script against a glide_list field that will remove the lock aspect on the field upon load.
function onLoad() {
//The X Field is a glide field but this script removes the lock from the field
( ' table_field_unlock ' ).click();
Please be kind I am new to scripting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 11:46 AM
Hi,
I assume you may be referring to this example: https://servicenowguru.com/scripting/client-scripts-scripting/lock-unlock-glidelist-url-fields-clien... -- have you ensured you're using proper formatting with no typos? And isolate script as false?
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
I invite you to check out our Ask the Experts community series and consider subscribing to our ServiceNow Developer YouTube channel!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 11:58 AM
I am referring to this but I cant get it to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 11:52 AM
I am referring to this but I cant get it to work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 11:59 AM - edited 03-21-2023 12:02 PM
Hello,
Can you please clarify you're looking for...in your post you say: "I am trying to write a client script against a glide_list field that will remove the lock aspect on the field upon load"
Then, you say: "The X Field is a glide field but this script removes the lock from the field"
Your post is a bit confusing and please share exactly what you are looking for and using...as what you've wrote your problem is solved then?
Perhaps share the exact script and example screenshot of the client script. As I've mentioned in my initial reply, as of now, you have typo issues going on, but...perhaps you didn't paste it correctly here on the forums.
It's always best to give as much literal and exact information as you can such as using the exact word as "unlock" versus "remove the lock".
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
I invite you to check out our Ask the Experts community series and consider subscribing to our ServiceNow Developer YouTube channel!