How to filter the values of a custom field based on the value inserted in a drop down list?

Hi,

In One Identity Manager 8.2.1 I would like to filter the items of a custom field based on which value I selected before in a dropdown list.

In the web portal, in the "Add new employee" section of the managers I have these two fields:

The first one is a drop down list, like this:



The second one has many options like this:

How can I filter the values of the second field based on what the user selected in the first field?