Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

List field separated by comma

Khanna Ji
Tera Guru

I have a list field pointing to some table X. List allows me to select multiple values. It's like a Watch List on the incident form.

It shows elements separated by comma. Like below

Test1, test2, test3

But insread of comma, I want to show them separated by hyphen (-) like below or comma needs to be in bold so that elements can be identified easily.

Test1 - test2 - test3

1 ACCEPTED SOLUTION

sunilsafare
Mega Guru

I dont think this is possible because servicenow designed the glide_list type of fields captures comma separated values.

Instead you can create custom column below the list field and write onchange/onload client scripts to copy the add the values into the new field with hyphen. I suggest to do this only if it is a unavoidable business need, else you should suggest business that it is not possible.

 

Thanks, Sunil Safare

View solution in original post

1 REPLY 1

sunilsafare
Mega Guru

I dont think this is possible because servicenow designed the glide_list type of fields captures comma separated values.

Instead you can create custom column below the list field and write onchange/onload client scripts to copy the add the values into the new field with hyphen. I suggest to do this only if it is a unavoidable business need, else you should suggest business that it is not possible.

 

Thanks, Sunil Safare