In Service Portal, users are unable to make a variable set read only and mandatory using a UI Policy.


Steps to Reproduce


Use case A:

  1. Import the attached update set
  2. Open '/nav_to.do?uri=/com.glideapp.servicecatalog_cat_item_view.do%3Fv%3D1%26sysparm_id%3D39ed84630c6d5700964f8a596d34fe7e'
  3. Click each of the checkboxes (Hide?, Readonly?, Mandatory?) and verify that the state for the variable inside the variable set changes accordingly
  4. Open '/sp?id=sc_cat_item&sys_id=39ed84630c6d5700964f8a596d34fe7e'
  5. Click each of the checkboxes (Hide?, Readonly?, Mandatory?) and validate.

Notice the Readonly and Mandatory states inside the variable sets are not working as expected.


Use case B on an instance just upgraded from JP8b to KP6:

1. Navigate to maintain items and pick a catalog item (such as Apple iPad 3)

2. Create the following variables:
- Container Start variable
- Select Box type variable with name "request_type1"
- Container End variable
- Container Start variable
- Wide Single Line Text variable (with name "new_cs" and text "What would you like the distribution list name to be?")
- Container End variable

3. For the Select Box type variable created in step 2, create a "Create a New Distribution List" for Question Choices 

4. Create a catalog UI policy (with name "If request type is new, show new container")
Condition: "request_type1" is "Create a New Distribution List"

Catalog UI Policy Action:
Mandatory: Leave alone
Visible: True
Read only: Release alone
Variable name: new_cs

5. Navigate to the catalog item on Service Portal.

6. Choose "Create a New Distribution List" under "Request Type".

Notice only the title "NEW DISTRIBUTION LIST" is displaying without the text variable "What would you like the distribution list name to be?"


Please review the Fixed In section to determine the latest available patch your instance can be upgraded to.


Related Problem: PRB1272746

Seen In

Kingston Patch 6
Kingston Patch 7

Fixed In

Kingston Patch 6 Hot Fix 3
Kingston Patch 7 Hot Fix 1
Kingston Patch 8

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-06-27 07:18:14