function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jacob BarnettJacob Barnett 

How would you create a multi-level dependent picklist that you can search by typing in and displaying all levels for the user to select from?

I have a requirement to build an easier way for the users to search for the final reason of Cases. However we have 4 levels of picklists to get there. So I am unsure of even where to start. Here is what we have:

On the Case object we have 4 levels of "Reasons" pickists:
  1. Category
  2. Sub Category
  3. Reason Type
  4. Reason
Currently they are all dependent on the previous picklist. So the user has to select the category first, then sub category, then reason type, then reason.

The ask is to allow the user to type in something that would filter out all picklist options that match what was typed in. And then based on what option the user selected the levels are seelcted. Here are the requirements I have:
  1. If the user types in "order" then the list will display all levels and options where "order" is an available option at any level or combination of said levels.
  2. If the user selects any level, any previous parent level is automatically selected so theortecially if the user seraches and selects the Reason directly, all the fields will be filled in.
    1. If the user selects (for example) an option at the Reason Category level, then the reverse lookup of Sub Category and Category is pre-filled and then they would still need to select the final Reason option
  3. This option is displayed on the Edit and Case Close page
    1. On the Case Close page the fields are required.
Hoping someone might have any ideas how to even start on this. I have a developer that suggested doing this as an external webpage but that got me thinking that maybe the Lightning Web Component might be a good option. Question is how would I go about doing such a thing?