How to populate a dropdown based on a previous selection or dropdown

Hi everyone,

Is there any way to populate a dropdown based on a previous selection?
For instance:

  • In dropdown we have two options: in store collection, delivery
  • If I select one of these options, then I need to then allow the person to select options within there
  • So for instance “delivery” might have options for: overnight, 2 day, 5 day

Each selection in the first dropdown has unique selections in the second dropdown.
Is there a clever way to do this?