Multi row variable set - disable edit / delete

Eli Guttman
Tera Guru

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

 

find_real_file.png

1 ACCEPTED SOLUTION

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.

View solution in original post

8 REPLIES 8

Manish Vinayak1
Tera Guru

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)

find_real_file.png

Create UI Policy Action to make the Variable Set readonly true. That should make the field read-only in the Requested Item view only.

find_real_file.png

Hope this helps!

Thanks,

Manish

 

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.

 

 

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.

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);