Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Reference Qualifier issues

jonathangilbert
Mega Sage

Hi All

 

Can someone help me with a reference qualifier on a Catalog item

 

I have the first variable on the form called "Colleagues Store Location", which is referencing the location table.

 

I want the 2nd variable called "Name of colleague" which references a custom table called "employee data". This table also includes a field called u_location, which references the location table.

 

What I am trying to do is for the 2nd variable to only display the employees that have the same location on their employee record (u_location) that has been selected in the first variable

 

So for example, if the Colleagues Store Location is set as "Birmingham", I only want the 2nd variable "Name of Colleague" to only display users that have "Birmingham" as the location on the their record

 

This is what I had as the ref qualifier on the 2nd variable, but it just displays everything 

 

u_location=javascript:current.variables.colleagues_store_location

1 ACCEPTED SOLUTION

Rakesh_M
Kilo Sage

Hi @jonathangilbert ,
Use advance reference and give reference qualifier as

javascript: 'u_location=' + current.variables.colleagues_store_location




Regards
Rakesh

View solution in original post

5 REPLIES 5

jency83
Tera Guru

Try this

javascript: 'u_location=' + current.variables.colleagues_store_location;

Rakesh_M
Kilo Sage

Hi @jonathangilbert ,
Use advance reference and give reference qualifier as
javascript: 'u_location=' + current.variables.colleagues_store_location


Regards
Rakesh

Rakesh_M
Kilo Sage

Hi @jonathangilbert ,
Use advance reference and give reference qualifier as

javascript: 'u_location=' + current.variables.colleagues_store_location




Regards
Rakesh

Tanushree Maiti
Kilo Patron

Hi @jonathangilbert 

 

Use this -

Adv Ref Qual:

javascript: 'u_location=' + current.variables.colleagues_store_location;

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: