Client Script not working on glide_list field

Jonathan Strobe
Tera Contributor

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 

 

9 REPLIES 9

Allen Andreas
Administrator
Administrator

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!

I am referring to this but I cant get it to work.

Jonathan Strobe
Tera Contributor

I am referring to this but I cant get it to work.

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!