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.

Lookup Select Box does not Return all Items

Brian Hofmeiste
Kilo Guru

Hello! 

 

I have added a column to the users table called "Job Level".  The column is type "choice" and has things like "VP", "Director", "Manager", etc.  I've created a request form that uses "Lookup select box" and references this "Job Level" field of the User Table.  When I test the form in the self-service portal it only shows me the Job Title associated with the current logged in user.  I would suspect it would show all options available, am I doing this wrong?

 

added some photos to illustrate.  

 

Thanks!

Brian

 

 

1 ACCEPTED SOLUTION

Hi @Brian Hofmeiste,

 

Can you just change the Reference table to Choice [sys_choice] and apply the filter/reference qualifier condition as -

 

javascript:"element=u_job_level^name=sys_user^inactive=false";

 

Note - add correct field name form user table. here, I assume its name as u_job_level.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

5 REPLIES 5

Harish Kota
Kilo Sage

Hi @Brian Hofmeiste 

 

Please share the screenshot of the Lookup select box, will check and update.

 

Thanks,

Harish Kota

Brian Hofmeiste
Kilo Guru

Here is a photo of the Job Level column on the user table

 

2022-12-12_10-58-40.png

 

Here is a photo of the variable assigned in the request form using lookup select box.

 

12022-12-12_10-57-39.png

 

Here is a photo of all the options being available on the USER record.

 

2022-12-12_10-59-11.png

 

Here is the photo of the self-service photo only showing the current logged in user job level. (Not all options)

 

2022-12-12_10-57-54.png

Hi @Brian Hofmeiste,

 

Can you just change the Reference table to Choice [sys_choice] and apply the filter/reference qualifier condition as -

 

javascript:"element=u_job_level^name=sys_user^inactive=false";

 

Note - add correct field name form user table. here, I assume its name as u_job_level.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Tried that and it's only pulling the username field of the user table, not the job level.  

2022-12-12_14-11-04.png