Expand/unlock List field on form of custom table

yashu1995
Kilo Guru

Hi All,

We have a glide_list type field on form custom table

find_real_file.png

Is it possible that the field will be always unlocked instead like this. Do we have to write a script to achieve this or do we have default attributes

find_real_file.png

 

Issue 2:

Once we select a record the value that is shown is as given below

find_real_file.png

 

Is it possible that the value displayed here can be a different field? 

find_real_file.png

IT Compliance policy needs to be visible in the list field. how to achieve this?

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Responses below

1) Is it possible that the field will be always unlocked instead like this. Do we have to write a script to achieve this or do we have default attributes

a) You cannot unlock it without script and it would require DOM Manipulation

b) Use onLoad client script

c) Ensure Isolate Script field is set to false; This field is not on form but from list you can make it false

Sample Script: Ensure you use your table name and field name; I have used incident table and watch_list as field

function onLoad(){

    $j(document).ready(function() {
        alert('inside ready');
        $j('incident.watch_list_unlock').click();
});
    //Type appropriate comment here, and begin script below

}

2) Is it possible that the value displayed here can be a different field? 

No - Once you select the record it would show only 1 value which is Display=true at your table level

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

12 REPLIES 12

Hi,

Any browser console error?

If this setup is in your personal instance and you are ok to share details url and some admin credentials then share here -> ankurb.snow@gmail.com

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for helping Ankur. The script worked by adding Timeout and removing j in $j

Glad to help.

You can try to check what Pradeep mentioned to avoid DOM

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Yashu,

Try to add attribute start_locked=false to unlock the glide list field. Details here. 

http://aqibnow.com/2018/unlock-glide-list-on-form/

Thanks for the solution without having to use DOM. it worked