How can I use one field to filter the drop-down options in another field?

There is an example here: https://www.wix.com/code/home/example/Cascading-Form