Need to auto-populate field and make it read only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2025 02:11 AM
Hi all,
Need some help please. We have a form on the portal for leavers, it contains a field for hardware. At the moment it is set up as a list collector (needs multiple select option). The reference qualifier has script so that when the users name is selected it pulls the hardware for that user from the asset table. This is then displayed in the dropdown for the user to select all hardware that needs returning.
However we would like it so that rather than the user selecting their hardware that needs returning, it auto-populates when the user is selected and the field is read only.
So far it appears that you can't use the read only checkbox on ServiceNow if its a list collector as it stops it working. We have tried different types of scripts as also can't get what we want to work either.
We just want
- hardware to still pull from the asset table based of user.
- the field to auto-populate with that hardware (sometimes multiple) and it to be read only so the user can't change or edit it.
Any ideas please on how to do this please?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 10:02 AM
You should be able to use a UI Policy to set this variable to read only. If you always want it to be read only, just make the condition on the UI Policy always evaluate to true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 10:54 AM
Just to be clear on the context, you mean a Service Catalog Item or Record Producer, correct?
Couple questions for you, and something I hate about showing something in a read-only field: what can the user do if the information is incorrect? If they can't do anything about it, why show the information and complicate things?
Just deal with it behind the scenes with your Flow or however you are dealing with the data.