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 dictionary record of "Name" field of "sys_user" table.

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


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
SR - IRM - Audit Management - New York 2019 Q3
SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - GRC Workbench - New York 2019 Q3
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Risk Management - New York 2019 Q3
SR - IRM - Vendor Risk Management - Madrid 2019 Q1

Intended Fix Version


Fixed In

New York Patch 6

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:2020-02-17 05:08:32