- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 01:34 PM
Hi,
Is there a way to set a multi row variable set read only on the requested item form?
I'm not variable set fields itself but to the edit / delete / add / remove all buttons
This question is relevant not for service portal but to the platform UI
Solved! Go to Solution.
- Labels:
-
Team Development
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 11:15 PM
Try to create the UI Policy on the Catalog Item record, not on the Variable Set record. If you try to create the UI Policy on Variable set, the catalog ui policy actions would show you the available variables; but if you create it on the Catalog Item record you should be able to see the variable set name in the option.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 05:26 PM
Hi,
I believe you want to make the Multi Row Variable set read-only on Requested Item record only, so that no one can add / delete variables after it has been submitted.
You can create a UI Policy without any condition, and set it to be applied only on Requested Items (un-check other options)
Create UI Policy Action to make the Variable Set readonly true. That should make the field read-only in the Requested Item view only.
Hope this helps!
Thanks,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 11:05 PM
Hi Manish,
thank you!
Can you please give some more details regarding this?
When i create the UI policy, i don't have an option to set is to the whole variable set as read only.
In the UI Policy action, i can pick a certain variable in the variable set as read only, but this won't make the whole variable set read only and will not remove the buttons.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 11:15 PM
Try to create the UI Policy on the Catalog Item record, not on the Variable Set record. If you try to create the UI Policy on Variable set, the catalog ui policy actions would show you the available variables; but if you create it on the Catalog Item record you should be able to see the variable set name in the option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 07:16 AM
Thank you very much!
BTW - i can see also that the it work using the catalog UI policy script
For example:
if (!g_user.hasRole('admin'))
g_form.setReadOnly('VARIABLE SET NAME',true);