How to populate Lookup Select Box based on value of another Lookup Select Box?

Community Alums
Not applicable

I have two variables on my catalog item, Select Location and Select User pointing to location and user tables respectively.

Based on location field, user must populate.

Variable - Select Location

find_real_file.png

find_real_file.png

Variable - Select User

find_real_file.png

find_real_file.png

find_real_file.png

 

I have given Reference qualifier and variable attributes, but it is still not working. Nothing is getting populated in user variable. Suggest what I am doing wrong over here.

1 ACCEPTED SOLUTION

Lookup select box should also do in this case

You can also try with this  ref  : javascript:'location.name='+current.variables.located_at

View solution in original post

9 REPLIES 9

Abdul Wahid
Kilo Expert

change the location field look up to reference field ..it is working.. but not with look up field

 

Community Alums
Not applicable

yes it is working if location is of Reference type. Any idea why it is not working if location is of type 'Lookup Select Box' ?

Lookup select box should also do in this case

You can also try with this  ref  : javascript:'location.name='+current.variables.located_at

thanks a lot buddy 🙂 it works 🙂 ....it may help in future 🙂 

Abdul Wahid
Kilo Expert

The lookup selectbox reference qualifier works only on load. It does not work on change of a field value. Use reference field instead of this.

 

FYI : 

https://community.servicenow.com/community?id=community_question&sys_id=7d93c765dbd8dbc01dcaf3231f961994