Dependent select list

Is it possible to create a select list depend on the value selected by another select list?
In my yaml file, I can set the first options via the @data-options, but I don’t know how to reference its selection in the second drop down.

Thanks in advance!