Polpulate lookup select box variable based on another lookup select box variable

Vivek13
Tera Contributor

Hi please help me with the following:

I have 2 lookup select box variable both has lookup from table as sys_user. One for lookup value field Email and another for  lookup value field Employee number. I want to set the value of Employee number variable based on the email chosen.
find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Hi Vivek,

 

Yes, Tested the same & it seems getReference would not work as its look-up reference field.

I suggest you to 

1. Mark the script -False

2. Only use reference qualifier as below.

javascript: 'email='+current.variables.email;

Tested the same & it works.

 

View solution in original post

7 REPLIES 7

Hi Vivek,

 

Yes, Tested the same & it seems getReference would not work as its look-up reference field.

I suggest you to 

1. Mark the script -False

2. Only use reference qualifier as below.

javascript: 'email='+current.variables.email;

Tested the same & it works.

 

Great. Thanks a lot, it worked.

Kailash Bhange
Kilo Sage
Kilo Sage

Hello Guys,

 

Check if below link helps you out!

[SOLVED]: - Dependent variable on Catalog item using Lookup Select Box

https://community.servicenow.com/community?id=community_article&sys_id=1ce7dceedb5914101cd8a345ca961...

 

If my answer resolves your issue, please mark my answer as Correct & 👍Helpful based on the validations.

Thank You!
Regards,
Kailash