Apply UI Policy on 'Variable Editor' field in Requested Item form [Self Service view]

cbender
Tera Contributor

Hello ServiceNow experts,

 

I have currently a problem with UI Policies in the requested item form.

 

I added 'Variable Editor' to selected fields in the requested item [Self Service view] form so that the user can see his requested items.

This works well BUT the user is able to change them.

So I want to make this 'field' read-only but ONLY for the user who ordered the item. (Info: in the workflow the 'Approval users' should have the possibility to change the variables).

So I tried to apply a UI Policy on the requested Item form but I could not locate the Table/UI Policy Action combination which solves the problem.

 

In Catalog UI Policies I am able to set each variable read-only. But this applies to every requested item form and not only to [Self Service view].

 

Could anybody give me a hint?

 

Thank you very much

7 REPLIES 7

Bhupinder1
Giga Expert

Hi Christaine,



I'm not able to see variable editor field when applying the UI policy. Can you please where it is?



Bhupinder


Hello Bhupinder,


the field 'variable editor' does not exist in UI Policy.


If you want to make the fields e.g. read-only, you have to write scripts.


Thanks Christiane, I did the same and it worked