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

Creating Dependency Between Two Glide List Fields

Chandan Sharma1
Tera Contributor

Suppose I have two Glide List type fields: Category and Sub-category, each with three choices — A, B, and C. The requirement is:

  • When the user selects A in the Category field, only A should be visible in the Sub-category field.
  • Similarly, selecting B or C in Category should restrict Sub-category to show only the corresponding value (B or C respectively).

In other words, the Sub-category field should dynamically display only the value that matches the selected Category.

Screenshot 2025-10-09 at 10.15.59 PM.png

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Chandan Sharma1 

Any reason you have same choices in both the fields?

Doesn't look like a valid business requirement

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

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

Its just for demo purposes, and the real requirement involves different choices.

 

 

John Gilmore
Giga Guru

Assuming these are both just choice fields you can set field dependency on the Sub-Category field.

Setup your Category field first, then when configuring the Sub-Category field under the Dependent Field tab make sure 'Use Dependent Field' is checked and then select the Category field as the Dependent on Field. This will add a Dependent Value attribute to each choice you configure under the choices for Sub-Category. If you need a choice to appear for multiple categories then you must create a sub-category choice for each category you want it to appear with.

Keep in mind that the Dependent Value attribute for each sub-category choice needs to reference the value for the Category choice associated with it and not the label.

This method works only for Choice fields.Here we're using Glide List, then this method will not work.