Reference Field Dependency on another reference field

Piyush Kumar
Kilo Contributor

Hi,

I am trying to make a reference field dependent on another reference field (which is already dependent on a lookup select which is referring to my custom table).

Both the reference field is referring to the same custom table.

Below Field 2 is dependent on Field 1 (using ref qualifier)

In the same way, I want to make dependent Field 3 dependent on Field 2 Selection. Another issue is here the list layout setting since both the fields are referring to the same table

find_real_file.png

The Applications field is already dependent on the Select Location field. Below table screenshot

find_real_file.png

 

Thanks,

Piyush Kumar

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So can you please inform what you tried and what is not working

simple syntax for advanced ref qualifier on field 3 would be

I assume this is for service catalog

javascript: 'fieldName=' + current.variables.variable2;

If this is for table then do this

javascript: 'fieldName=' + current.variable2;

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So can you please inform what you tried and what is not working

simple syntax for advanced ref qualifier on field 3 would be

I assume this is for service catalog

javascript: 'fieldName=' + current.variables.variable2;

If this is for table then do this

javascript: 'fieldName=' + current.variable2;

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Piyush Kumar

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Narendranath R2
Tera Contributor

Hi Ankur, 

I was wondering if you could explain how to build reference fields like OOB assignment_group and assigned_to fields. Without having to mention javascript reference qualifiers?

 

Just by adding assinged_to as depenedent on assignment_group it works as expected.