Service catalog UI policy

Service catalog UI policy

Catalog UI policies control the behavior of catalog item forms when
presented to your users. Catalog UI policies can be applied to a catalog item or a variable
set.

UI policies
are useful when applied to service catalog items.
Keep the following points in mind when creating service catalog UI policies:

A catalog UI policy applies to either a specific catalog item or any item that uses a
specific variable set.

A catalog UI policy can only contain and reference variables that are defined for the
catalog item or variable set.

Like UI policy conditions, the variables in a service catalog UI policy condition must be
visible (even if hidden by UI policy or read-only) on the form for the condition to be
tested. Also, ensure that the variables have names. For more information, see Create a catalog client
script.

Limited UI policy functionality applies to following variables:

The Mandatory and Read Only policy do not apply to the following variable types: Break,
Container Split, Container End, UI Macro, UI Macro with Label, Label, UI Page.

The Set visible policy does not apply to the following variable types: Break, Container
Split, Container End.

Service catalog UI policies are applied to variables and variable sets of catalog items
ordered in the service catalog. Policies can also be applied when the variables are present in
a Requested Item or Catalog Task form.

Catalog UI policy actions can be applied on a variable set. The actions on a variable set
are applied on all variables within the variable set. If different catalog UI policy actions
are applied on a variable or a variable set, the action with the lowest order is
considered.

Note: Applying catalog UI policy actions on a variable set is not supported on
Service Portal.

The priority order for UI actions types is:

Mandatory (highest)

ReadOnly/Display

If a variable is set to mandatory and does not have value, readonly or hide do not
work on that variable. If a variable is hidden or readonly, and then set to mandatory,
the variable field becomes visible or editable.

This priority order is also
applicable for variable sets and containers. If a variable set or container has a
mandatory variable without any value, then the container or variable set cannot be
hidden.

Catalog UI policies are supported for catalog items viewed in a service catalog
wizard.