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

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

Hi Ankur,

 

I used the script you mentioned and also made isolate script to false

find_real_file.png

 

Even after adding this script, the field is still locked it's not in the expanded view

find_real_file.png

Hi,

Did you get the alert?

Regards
Ankur

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

Yeah i got the alert msg but the field didn't get expanded