Populate a List type field depending on the value of another field

shun6
Giga Sage

Hi developers,

I have a List type field and want to display choices based on another field value.

I tryed it by using  'Dependent on field' option and 'Dependent value' on sys_choice but it doesn't work for List type field.

Is there any way to achieve my requirement?

Thanks.

 

shun6_0-1750401114546.png

shun6_1-1750401223819.png

 

 

2 ACCEPTED SOLUTIONS

Chaitanya ILCR
Mega Patron

Hi @shun6 ,

With List type (added as choices) this won't work dependency
I believe current field looks like this (list with choices)

ChaitanyaILCR_0-1750402186782.png

 

 

the only work around I can think of at this point is create custom a table for those choices and add a reference qualifier

 

or try using (question_choice) table come up with plan and see if you can add those choices in the question_choice table and make it depended using ref qual

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@shun6 

it works only for list field having actual table being referred.

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

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

View solution in original post

2 REPLIES 2

Chaitanya ILCR
Mega Patron

Hi @shun6 ,

With List type (added as choices) this won't work dependency
I believe current field looks like this (list with choices)

ChaitanyaILCR_0-1750402186782.png

 

 

the only work around I can think of at this point is create custom a table for those choices and add a reference qualifier

 

or try using (question_choice) table come up with plan and see if you can add those choices in the question_choice table and make it depended using ref qual

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@shun6 

it works only for list field having actual table being referred.

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

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