- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2023 11:19 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2023 12:16 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2023 12:16 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2023 12:45 PM
Thank you @Brad Bowman !
did workaround with client script instead of OnChange I added code to Onload. It worked!