Is it possible to display components based on a filter?

I am trying to display certain components based on a filter. In my application, I am scheduling employees based on the job that needs to be completed. Each job need to have employees work on certain machines. My goal is to have a user select a job from a drop down and the machines needed for that job will populate.

I was not sure if I can make a query that populates certain containers based on if statements in js.

Within most components, if not all, there is a Hidden field that you can populate with boolean values (true or false) based on what is selected in the drop down...