Notifications

4 views

Description

Setting value in List Collector variable does not work in Service Portal, when the display values contain comma

Steps to Reproduce

[Pre Requisite: This requires Demo data in the Users table]

1. Create a new Catalog Item with one "List Collector" variable named "test_var" which references the sys_user table.
2. Create an onLoad client script with the following script -
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.setValue("test_var", "62826bf03710200044e0bfc8bcbe5df1,a8f98bb0eb32010045e1a5115206fe3a");
}

Make sure this script's UI Type is set to "All"

3. Open the following dictionary record -
https://empsidmadrid.service-now.com/nav_to.do?uri=sys_dictionary.do?sys_id=3c3089223433230078507f0289bd01c0

4. Change Line #14 in the script to -
current.last_name + ', ' + current.first_name;

5. Open the catalog item from Service Portal

Expected behavior
There will be two users selected in the test_var List Collector: Abel Tuter and Abraham Lincoln

Actual behavior
There will be two users selected in the test_var List Collector: Tuter and Abel, which is wrong

Workaround

This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.


Related Problem: PRB1342101

Seen In

London Patch 7
Madrid Patch 2

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:43:43
Published:2019-05-06