The CreatorCon Call for Content is officially open! Get started here.

Reference Field dependant on another Reference Field

MStritt
Tera Guru

Hello,

I would like to have one reference field dependent on another reference field on our case form. On our case form, I would like the 'Component' reference field to only show values that are related to the 'Product Name' field. In the screenshot below, when I click on the 'Component' lookup, I only want to see the values related to Product Name 'Digital PIN'.

find_real_file.png

 

 

1 ACCEPTED SOLUTION

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

You need to include the "javascript" prefix to evaluate the current value of u_product_name.  The following should work as your reference qualfier:

javascript:"u_component=" + current.u_product_name

View solution in original post

15 REPLIES 15

Sachin Gavhane
Giga Guru

Hi All , am trying to achieve the same thing, In my scenario there is a widget and table gets populated with values of all the variables on catalog item form on click of ADD button. 

 

Initially variable  named  "category"  is blank . Variable named "Sub category" have values of category = orange,red and green. [ as shown in below fig]

 

Once we select Sub category and click on ADD button then  its  respective category gets  populated in the variable "category.

lets say "category" populated with value = orange [ example] 

So the requirement is , next time "Sub category " should show values only of those category = orange

 

note: "Sub category " is reference variable 

category is single line text variable

 

find_real_file.png