Multiple value selection for a field in form

Not applicable

I have a field in a form where i need multiple values(not users) to be selected. Only way i think of doing it is by watchlist (glide_list). I can't do it as choice list as it gives only one option to select from the list.
Other way of doing it as create the choices(values) as users. reference the glide_list to sys_user table which gives you the list of values. But this gives the user to add himself to the list, which is not required in our case. Is there any other way of accomplishing this task or is there a way where we can take out user symbol(add me). Referencing the field to sys_user_group table is adding sys id into the list instead of name. Tried increasing the field length, but didn't help.
Any ideas please..:confused:

4 REPLIES 4

rob_phillips
ServiceNow Employee
ServiceNow Employee

What type of 'values' are you trying to put into the list? You can reference any table with a glide_list.

Just create a new field of type List and define the table you want to reference.


THanks Rob. I have tried using this method but didn't help. The values that i want to put in the list are like rules that are violated. I tried following methods:

1. created different rules as groups(which puts these groups in sys_user_group table), created a role called "rulesviolated" and assigned this role to the different groups i created. Field is referenced to sys_user_group table with reference qual: roles=rulesviolated. THis doesn't show up anything in the list. If i take out reference qual, it shows up other groups also which are not required. I need only the groups(rules created as groups) to be visible.

2. if i create rules as users and refer the field to sys_user table, it gives me a small icon to add myself (whoever logged in user is) to the list.

3. Created new table and populated it with all the rules that i need. Then referenced the field to this new table. When i search and add the rules, it gives me sys id and not the names.

I am stumped. If anyone has done this earlier or any other ideas please let me know..


On your new table, open the dictionary for the name field and enable display. This should replace the sysids with the name field.


Thanks John. I did that and its working as expected.