Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to set dependencies in a multi-line variable set (catalog item) selection box

Koki Sugimori
Tera Contributor

Hello.

 

I am currently creating a multi-line variable set of catalog items.
There are five SelectBoxes in the multi-line variable set.

KokiSugimori_0-1744952136581.png

 

Since we want to display the choices from the second SelectBox(2階層目) in such a way that they have a dependency, we have configured the settings as follows.

KokiSugimori_1-1744952438557.png

KokiSugimori_2-1744952447730.png

 

Here is where I am having problems.
I set the Reference qualifier in the third SelectBox(3階層目) as well as the second SelectBox(2階層目), but when I check from the Portal, the choices are not displayed.

 

I further checked and found that in the SelectBox(1階層目) -> Lookup SelectBox(2階層目), the dependency (Reference qualifier) works correctly and the choices are displayed, but in the Lookup SelectBox(2階層目) -> Lookup SelectBox(3階層目), not even the choices with the dependency are displayed.

 

KokiSugimori_3-1744953228015.png

KokiSugimori_4-1744953235388.png


Does anyone know of a solution?

 

Thank you in advance for your help.

20 REPLIES 20

@Koki Sugimori 

try giving value column here

AnkurBawiskar_0-1744962385197.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar 

Thank you very much.

 

I changed the third variable Lookup value field to “Value” but it did not work as expected.

KokiSugimori_0-1744963235065.png

 

Out of curiosity, I also changed the second variable Lookup value field to “Value” and the third SelectBox(3階層目) displayed the choices.

KokiSugimori_1-1744963264527.png

KokiSugimori_2-1744963270497.png

 

However, it is no good, because the value is displayed, not the label, but....

@Koki Sugimori 

keep choice label and value as same

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

SANDEEP28
Mega Sage

@Koki Sugimori I tried replicating your requirement in PDI and it worked. Below is what I configured

 

MRVS --> Variable 1 --> Country --> Select Box

Choices for Country variable as below 

SANDEEP28_0-1744964289818.png

 

MRVS --> Variable 2 --> States --> Lookup Select Box

Choices for Australia country as below. Here dependency value is Australia country. If you see below Value and label is different same as per your scenario.

SANDEEP28_6-1744964966745.png

 

MRVS --> Variable 3 --> City --> Lookup Select Box

Choices for city for dependency value as Victoria & Queensland. If you see below Value and label is different same as per your scenario.

 

 

SANDEEP28_8-1744965382301.png

 

Below is the screenshot of variable 2 and variable 3 configuration

Variable2 --> States

SANDEEP28_4-1744964792124.png

 

Variable 3 --> City 

 

SANDEEP28_5-1744964894313.png

 

I am keeping Lookup field value as Label for state and city variable. I can see label in state and city variable instead of values.

 

SANDEEP28_9-1744965428218.png

 

 

Compare above screenshot with your variable and check.

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

@SANDEEP28 

Thank you very much.
As you can see in the image, I set Variable2(2階層目) and Variable3(3階層目), but nothing was displayed in Variable3(3階層目).

 

Variable2(2階層目)

KokiSugimori_1-1745221325294.png

 

Variable3(3階層目)

KokiSugimori_0-1745221274397.png


SelectBox→LookupSelectBox works, but LookupSelectBox→LookupSelectBox does not work.
Is there a problem somewhere in this?

 

Or is there a problem with the records in the sys_choice table?