383 views

Description

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?"

Workaround

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

Intended Fix Version

Kingston Patch 7 Hot Fix 1

Fixed In

Kingston Patch 6 Hot Fix 3
Kingston Patch 8
London

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-09-26 02:28:41
Published:2018-08-30