Readonly glide_list doesn't display value

Nirmala B1
Tera Contributor

Hi, 

Can anyone suggest me how to overcome issue with glide_list.

I have to display values on glide_list by OnChange of another field.

glide_list must be read-only. 

It's not displaying the values if its read-only if I make glide_list editable it displays the values.

 

Please help me to resolve this issue.

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

 You've uncovered a bug here that should be reported to ServiceNow.  When a List field is read-only more than one value is not even stored in it, let alone displayed on a form.  As a workaround that weirdly seems to work, in your onChange script have 3 lines to setReadOnly false, setValue, then setReadOnly true.

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

 You've uncovered a bug here that should be reported to ServiceNow.  When a List field is read-only more than one value is not even stored in it, let alone displayed on a form.  As a workaround that weirdly seems to work, in your onChange script have 3 lines to setReadOnly false, setValue, then setReadOnly true.

Thank you @Brad Bowman  !

did workaround with client script instead of OnChange I added code to Onload. It worked!