I have two arrays of data. One, called 'Groups', lists the names of various groups within a company. Two, called 'Tasks', lists the tasks most commonly assigned to employees of each group. Each group has its own array of task data. In other words, there are two interdependent sets of data.
Now, I have two drop down lists in my app. First, the groups button to select which group you'll be sending a task to. Second, the tasks button to select which task you'll be assigning members of that group.
How can I make the UI so that the second list array changes to match the appropriate selection in the first list? If I choose 'Marketing' from the Groups array, I only want to see a selection of Marketing tasks to choose from. If I change the group to 'Sales', I want to see a selection of Sales tasks.
How can I accomplish this? Thanks