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

UI is a bit issue with using start_locked=false

find_real_file.png

two buttons unlock and lock both are visible

This is not the expected behaviour. I recommend creating a HI ticket. FYI - The best practice is to avoid DOM manipulation.

Let me know if that answered your question. If so, please mark appropriate response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. 

 

Gary Fawcett1
Tera Guru

I know this question was asked a long time ago, but the value is the Display value in the unlocked list box.

So you can create a calculated field and make that the display field.  See this post about that HERE